Skip to content

Commit

Permalink
Merge pull request #32918 from shubham1206agra/fix-request-flow
Browse files Browse the repository at this point in the history
Fix request flow

(cherry picked from commit d8b8182)
  • Loading branch information
Julesssss authored and OSBotify committed Dec 12, 2023
1 parent cb74e7f commit 4a2d139
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/request/step/IOURequestStepConfirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function IOURequestStepConfirmation({
// but not all of them (maybe someone skipped out on dinner). Then it's nice to be able to select/deselect people from the group chat bill
// split rather than forcing the user to create a new group, just for that expense. The reportID is empty, when the action was initiated from
// the floating-action-button (since it is something that exists outside the context of a report).
canModifyParticipants={!_.isEmpty(report.reportID)}
canModifyParticipants={!transaction.isFromGlobalCreate}
policyID={report.policyID}
bankAccountRoute={ReportUtils.getBankAccountRoute(report)}
iouMerchant={transaction.merchant}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/iou/request/step/IOURequestStepParticipants.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ function IOURequestStepParticipants({
numberOfParticipants.current = val.length;

// When multiple participants are selected, the reportID is generated at the end of the confirmation step.
// So we are resetting selectedReportID ref to the reportID coming from params.
if (val.length !== 1) {
selectedReportID.current = reportID;
return;
}

Expand Down

0 comments on commit 4a2d139

Please sign in to comment.