From 7e4f81a6fc36f579eef990b213053a7e30de858d Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Mon, 1 Apr 2024 19:48:29 +0800 Subject: [PATCH 1/2] don't use fall back route --- src/pages/AddPersonalBankAccountPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/AddPersonalBankAccountPage.tsx b/src/pages/AddPersonalBankAccountPage.tsx index e2d832f672b2..c5ac1a9f3967 100644 --- a/src/pages/AddPersonalBankAccountPage.tsx +++ b/src/pages/AddPersonalBankAccountPage.tsx @@ -51,7 +51,7 @@ function AddPersonalBankAccountPage({personalBankAccount, plaidData}: AddPersona } else if (shouldContinue && onSuccessFallbackRoute) { PaymentMethods.continueSetup(onSuccessFallbackRoute); } else { - Navigation.goBack(ROUTES.SETTINGS_WALLET); + Navigation.goBack(); } }, [personalBankAccount], From d0b0400528330cdafa8a23250955c063a6d51756 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Mon, 1 Apr 2024 20:28:55 +0800 Subject: [PATCH 2/2] remove unused import --- src/pages/AddPersonalBankAccountPage.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/AddPersonalBankAccountPage.tsx b/src/pages/AddPersonalBankAccountPage.tsx index c5ac1a9f3967..a932bcf627d9 100644 --- a/src/pages/AddPersonalBankAccountPage.tsx +++ b/src/pages/AddPersonalBankAccountPage.tsx @@ -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 = {