Skip to content

Commit d7edd80

Browse files
authored
Merge pull request #5895 from PrashantMangukiya/prashant-5295
Updated logic to not allow attendee deselection from bill split confirmation page.
2 parents 74b77a8 + cb27361 commit d7edd80

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/components/IOUConfirmationList.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ const propTypes = {
6565
phoneNumber: PropTypes.string,
6666
})).isRequired,
6767

68+
/** Whether this is an IOU split and belongs to a group report */
69+
isGroupSplit: PropTypes.bool.isRequired,
70+
6871
...windowDimensionsPropTypes,
6972

7073
...withLocalizePropTypes,
@@ -411,7 +414,7 @@ class IOUConfirmationList extends Component {
411414
canSelectMultipleOptions={this.props.hasMultipleParticipants}
412415
selectedOptions={this.getSelectedOptions()}
413416
onSelectRow={toggleOption}
414-
disableRowInteractivity={!this.props.hasMultipleParticipants}
417+
disableRowInteractivity={!this.props.isGroupSplit}
415418
optionHoveredStyle={hoverStyle}
416419
/>
417420
</ScrollView>

src/pages/iou/IOUModal.js

+1
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ class IOUModal extends Component {
356356
onUpdateComment={this.updateComment}
357357
iouType={this.props.iouType}
358358
localCurrencyCode={this.props.myPersonalDetails.localCurrencyCode}
359+
isGroupSplit={this.steps.length === 2}
359360
/>
360361
)}
361362
</>

src/pages/iou/steps/IOUConfirmPage.js

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ const propTypes = {
4040

4141
/** IOU type */
4242
iouType: PropTypes.string,
43+
44+
/** Whether this is an IOU split and belongs to a group report */
45+
isGroupSplit: PropTypes.bool.isRequired,
4346
};
4447

4548
const defaultProps = {
@@ -59,6 +62,7 @@ const IOUConfirmPage = props => (
5962
onConfirm={props.onConfirm}
6063
iouType={props.iouType}
6164
localCurrencyCode={props.localCurrencyCode}
65+
isGroupSplit={props.isGroupSplit}
6266
/>
6367
);
6468

0 commit comments

Comments
 (0)