Skip to content

Commit

Permalink
remove unnecessary navigation ready callback
Browse files Browse the repository at this point in the history
  • Loading branch information
arosiclair committed Jul 29, 2022
1 parent d5178b3 commit e891e71
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/libs/actions/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,9 @@ function setUpPoliciesAndNavigate(session, currentPath) {
return;
}
if (!isLoggingInAsNewUser && exitTo) {
Navigation.isNavigationReady()
.then(() => {
// We must call dismissModal() to remove the /transition route from history
Navigation.dismissModal();
Navigation.navigate(exitTo);
});
// We must call dismissModal() to remove the /transition route from history
Navigation.dismissModal();
Navigation.navigate(exitTo);
}
}

Expand Down

0 comments on commit e891e71

Please sign in to comment.