Skip to content

Commit

Permalink
fix: skip redundant goBack
Browse files Browse the repository at this point in the history
in setupPoliciesAndNavigate
  • Loading branch information
dominictb committed Jul 18, 2024
1 parent 909f8ea commit 6839fcb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libs/actions/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,6 @@ function setUpPoliciesAndNavigate(session: OnyxEntry<OnyxTypes.Session>) {
if (!isLoggingInAsNewUser && exitTo) {
Navigation.waitForProtectedRoutes()
.then(() => {
// We must call goBack() to remove the /transition route from history
Navigation.goBack();
Navigation.navigate(exitTo);
})
.then(endSignOnTransition);
Expand Down

0 comments on commit 6839fcb

Please sign in to comment.