Skip to content

Commit

Permalink
corrected the reportID going to confirmation page
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1206agra committed Dec 12, 2023
1 parent 5f71303 commit 7dfec0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/iou/request/step/IOURequestStepParticipants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7dfec0e

Please sign in to comment.