Skip to content

Commit

Permalink
Dismiss modal before redirecting
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolen committed Dec 26, 2023
1 parent 8a751af commit a203ca1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/iou/request/IOURequestRedirectToStartPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ function IOURequestRedirectToStartPage({
params: {iouType, iouRequestType},
},
}) {
// Dismiss this modal because the redirects below will open a new modal and there shouldn't be two modals stacked on top of each other.
Navigation.dismissModal();

// Redirect the person to the right start page using a rendom reportID
const optimisticReportID = ReportUtils.generateReportID();
if (iouRequestType === CONST.IOU.REQUEST_TYPE.DISTANCE) {
Expand Down

0 comments on commit a203ca1

Please sign in to comment.