Skip to content

Commit

Permalink
Update IOURequestStepConfirmation.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolen committed Dec 12, 2023
1 parent 9f00f67 commit aace20d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/iou/request/step/IOURequestStepConfirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ function IOURequestStepConfirmation({
// If there is not a report attached to the IOU with a reportID, then the participants were manually selected and the user needs taken
// back to the participants step
if (!transaction.participantsAutoAssigned) {
// When going back to the participants step, if the iou is a "request" (not a split), then the participants need to be cleared from the
// transaction so that the participant can be selected again.
if (iouType === CONST.IOU.TYPE.REQUEST) {
IOU.setMoneyRequestParticipants_temporaryForRefactor(transactionID, []);
}
Navigation.goBack(ROUTES.MONEY_REQUEST_STEP_PARTICIPANTS.getRoute(iouType, transactionID, reportID));
return;
}
Expand Down

0 comments on commit aace20d

Please sign in to comment.