From aace20dcdbe79a3a144b8113daf5d1445fd9dc9c Mon Sep 17 00:00:00 2001 From: Tim Golen Date: Tue, 12 Dec 2023 15:56:58 -0700 Subject: [PATCH] Update IOURequestStepConfirmation.js --- 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; }