From b7db226a2fd90129fb810a8e0b470e943273322a Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 17 Apr 2024 13:32:43 +0800 Subject: [PATCH 1/2] remove home fallback route --- src/libs/actions/PaymentMethods.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/PaymentMethods.ts b/src/libs/actions/PaymentMethods.ts index dc8cefc0c30ee..ea047d7b0a249 100644 --- a/src/libs/actions/PaymentMethods.ts +++ b/src/libs/actions/PaymentMethods.ts @@ -30,7 +30,7 @@ const kycWallRef: MutableRefObject = createRef(); /** * When we successfully add a payment method or pass the KYC checks we will continue with our setup action if we have one set. */ -function continueSetup(fallbackRoute: Route = ROUTES.HOME) { +function continueSetup(fallbackRoute?: Route) { if (!kycWallRef.current?.continueAction) { Navigation.goBack(fallbackRoute); return; From be33cd798c193a80453311d0bb538258c47d206c Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 17 Apr 2024 13:42:47 +0800 Subject: [PATCH 2/2] remove unused import --- src/libs/actions/PaymentMethods.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libs/actions/PaymentMethods.ts b/src/libs/actions/PaymentMethods.ts index ea047d7b0a249..c5a74bdc6acee 100644 --- a/src/libs/actions/PaymentMethods.ts +++ b/src/libs/actions/PaymentMethods.ts @@ -10,7 +10,6 @@ import * as CardUtils from '@libs/CardUtils'; import Navigation from '@libs/Navigation/Navigation'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; -import ROUTES from '@src/ROUTES'; import type {Route} from '@src/ROUTES'; import INPUT_IDS from '@src/types/form/AddDebitCardForm'; import type {BankAccountList, FundList} from '@src/types/onyx';