Skip to content

Commit

Permalink
Merge pull request #39351 from bernhardoj/fix/38558-going-back-goes-t…
Browse files Browse the repository at this point in the history
…o-the-wallet-page-again

Fix going back from wallet page returns to the same page after adding a bank account
  • Loading branch information
MariaHCD authored Apr 4, 2024
2 parents a040264 + d0b0400 commit ae6cc49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/AddPersonalBankAccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Navigation from '@libs/Navigation/Navigation';
import * as BankAccounts from '@userActions/BankAccounts';
import * as PaymentMethods from '@userActions/PaymentMethods';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import type {PersonalBankAccount, PlaidData} from '@src/types/onyx';

type AddPersonalBankAccountPageWithOnyxProps = {
Expand Down Expand Up @@ -51,7 +50,7 @@ function AddPersonalBankAccountPage({personalBankAccount, plaidData}: AddPersona
} else if (shouldContinue && onSuccessFallbackRoute) {
PaymentMethods.continueSetup(onSuccessFallbackRoute);
} else {
Navigation.goBack(ROUTES.SETTINGS_WALLET);
Navigation.goBack();
}
},
[personalBankAccount],
Expand Down

0 comments on commit ae6cc49

Please sign in to comment.