From 7dfec0ec579d96fb3eec907b5cefc15fd935744c Mon Sep 17 00:00:00 2001 From: Shubham Agrawal Date: Tue, 12 Dec 2023 17:55:45 +0530 Subject: [PATCH] corrected the reportID going to confirmation page --- src/pages/iou/request/step/IOURequestStepParticipants.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/iou/request/step/IOURequestStepParticipants.js b/src/pages/iou/request/step/IOURequestStepParticipants.js index d07f900dbb6f..5f5dbb7e6a83 100644 --- a/src/pages/iou/request/step/IOURequestStepParticipants.js +++ b/src/pages/iou/request/step/IOURequestStepParticipants.js @@ -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; }