From d4db6a3010c748e615a51b3652bd7483bbd5cc97 Mon Sep 17 00:00:00 2001 From: daledah Date: Wed, 2 Oct 2024 11:15:11 +0700 Subject: [PATCH] fix: lint --- src/pages/AddPersonalBankAccountPage.tsx | 2 +- src/pages/settings/Wallet/PaymentMethodList.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/AddPersonalBankAccountPage.tsx b/src/pages/AddPersonalBankAccountPage.tsx index fdc200f45ad9..24faf40b63fd 100644 --- a/src/pages/AddPersonalBankAccountPage.tsx +++ b/src/pages/AddPersonalBankAccountPage.tsx @@ -45,7 +45,7 @@ function AddPersonalBankAccountPage() { } else if (shouldContinue && onSuccessFallbackRoute) { PaymentMethods.continueSetup(onSuccessFallbackRoute); } else { - Navigation.navigate(ROUTES.SETTINGS_WALLET); + Navigation.goBack(); } }, [personalBankAccount], diff --git a/src/pages/settings/Wallet/PaymentMethodList.tsx b/src/pages/settings/Wallet/PaymentMethodList.tsx index 8fdab3a2b2ee..5bf8ee4583ca 100644 --- a/src/pages/settings/Wallet/PaymentMethodList.tsx +++ b/src/pages/settings/Wallet/PaymentMethodList.tsx @@ -334,6 +334,7 @@ function PaymentMethodList({ text={translate('walletPage.addBankAccount')} large success + isDisabled={!isUserValidated} onPress={onPress} /> ) : ( @@ -346,7 +347,7 @@ function PaymentMethodList({ /> ), - [shouldShowAddBankAccountButton, translate, onPress, buttonRef, styles.paymentMethod, listItemStyle, isUserValidated], + [shouldShowAddBankAccountButton, onPressItem, translate, onPress, buttonRef, styles.paymentMethod, listItemStyle, isUserValidated], ); /**