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
  • Loading branch information
Julesssss authored Dec 12, 2023
2 parents da2a96b + 7dfec0e commit d8b8182
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 d8b8182

Please sign in to comment.