Skip to content

Commit

Permalink
Merge pull request #32948 from Expensify/tgolen-fix-splitrequestparti…
Browse files Browse the repository at this point in the history
…cipants

(cherry picked from commit 89bdaed)
  • Loading branch information
luacmartins authored and OSBotify committed Dec 13, 2023
1 parent 54c8f5f commit 4cf6a8c
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 4cf6a8c

Please sign in to comment.