diff --git a/src/components/IOUConfirmationList.js b/src/components/IOUConfirmationList.js index 8c98d99a0b57..3d225c5a51fc 100755 --- a/src/components/IOUConfirmationList.js +++ b/src/components/IOUConfirmationList.js @@ -65,6 +65,9 @@ const propTypes = { phoneNumber: PropTypes.string, })).isRequired, + /** Whether this is an IOU split and belongs to a group report */ + isGroupSplit: PropTypes.bool.isRequired, + ...windowDimensionsPropTypes, ...withLocalizePropTypes, @@ -411,7 +414,7 @@ class IOUConfirmationList extends Component { canSelectMultipleOptions={this.props.hasMultipleParticipants} selectedOptions={this.getSelectedOptions()} onSelectRow={toggleOption} - disableRowInteractivity={!this.props.hasMultipleParticipants} + disableRowInteractivity={!this.props.isGroupSplit} optionHoveredStyle={hoverStyle} /> diff --git a/src/pages/iou/IOUModal.js b/src/pages/iou/IOUModal.js index f040e6bd4fd6..93f1b1269fcd 100755 --- a/src/pages/iou/IOUModal.js +++ b/src/pages/iou/IOUModal.js @@ -356,6 +356,7 @@ class IOUModal extends Component { onUpdateComment={this.updateComment} iouType={this.props.iouType} localCurrencyCode={this.props.myPersonalDetails.localCurrencyCode} + isGroupSplit={this.steps.length === 2} /> )} diff --git a/src/pages/iou/steps/IOUConfirmPage.js b/src/pages/iou/steps/IOUConfirmPage.js index 8ddcb864fff1..faf91a48ceea 100644 --- a/src/pages/iou/steps/IOUConfirmPage.js +++ b/src/pages/iou/steps/IOUConfirmPage.js @@ -40,6 +40,9 @@ const propTypes = { /** IOU type */ iouType: PropTypes.string, + + /** Whether this is an IOU split and belongs to a group report */ + isGroupSplit: PropTypes.bool.isRequired, }; const defaultProps = { @@ -59,6 +62,7 @@ const IOUConfirmPage = props => ( onConfirm={props.onConfirm} iouType={props.iouType} localCurrencyCode={props.localCurrencyCode} + isGroupSplit={props.isGroupSplit} /> );