From 4cf6a8c0b45125661fe9a9a8e5258284f5c1c08c Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 12 Dec 2023 19:05:34 -0700 Subject: [PATCH] Merge pull request #32948 from Expensify/tgolen-fix-splitrequestparticipants (cherry picked from commit 89bdaed1171bfe77a3c6d04888a6114fa9fb9ade) --- src/pages/iou/request/step/IOURequestStepConfirmation.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/iou/request/step/IOURequestStepConfirmation.js b/src/pages/iou/request/step/IOURequestStepConfirmation.js index 60b3276e941e..cb90103c6ffc 100644 --- a/src/pages/iou/request/step/IOURequestStepConfirmation.js +++ b/src/pages/iou/request/step/IOURequestStepConfirmation.js @@ -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; }