Skip to content

Commit

Permalink
Merge pull request Expensify#26437 from Expensify/cmartins-fixFullPage
Browse files Browse the repository at this point in the history
Fix dismiss modal behavior for NotFound screen
  • Loading branch information
youssef-lr authored Aug 31, 2023
2 parents 7c13734 + 12c2ab2 commit 2812e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Navigation/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function dismissModal(targetReportID) {
const lastRoute = _.last(rootState.routes);
switch (lastRoute.name) {
case NAVIGATORS.RIGHT_MODAL_NAVIGATOR:
case NAVIGATORS.FULL_SCREEN_NAVIGATOR:
case SCREENS.NOT_FOUND:
case SCREENS.REPORT_ATTACHMENTS:
// if we are not in the target report, we need to navigate to it after dismissing the modal
if (targetReportID && targetReportID !== getTopmostReportId(rootState)) {
Expand Down

0 comments on commit 2812e45

Please sign in to comment.