Skip to content

Commit

Permalink
Cleanup handleDismissModalAction
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Nov 22, 2024
1 parent e211447 commit a846373
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function handleDismissModalAction(
) {
const lastRoute = state.routes.at(-1);
const newAction = StackActions.pop();
action;

if (!lastRoute?.name || !MODAL_ROUTES_TO_DISMISS.includes(lastRoute?.name)) {
Log.hmmm('[Navigation] dismissModal failed because there is no modal stack to dismiss');
return null;
Expand Down

0 comments on commit a846373

Please sign in to comment.