From 7c6564883e9abd1cc61d12a9d4ee4046230f207c Mon Sep 17 00:00:00 2001 From: Neil Marcellini Date: Thu, 9 Nov 2023 10:43:50 -0800 Subject: [PATCH] Revert "Fix: Wallet page does not update instantly when bank account is added or deleted" --- src/pages/settings/Wallet/WalletPage/WalletPage.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/settings/Wallet/WalletPage/WalletPage.js b/src/pages/settings/Wallet/WalletPage/WalletPage.js index 2387f5f23e6c..38d9722e2ed7 100644 --- a/src/pages/settings/Wallet/WalletPage/WalletPage.js +++ b/src/pages/settings/Wallet/WalletPage/WalletPage.js @@ -257,6 +257,10 @@ function WalletPage({bankAccountList, betas, cardList, fundList, isLoadingPaymen Navigation.navigate(source === CONST.KYC_WALL_SOURCE.ENABLE_WALLET ? ROUTES.SETTINGS_WALLET : ROUTES.SETTINGS_WALLET_TRANSFER_BALANCE); }; + useEffect(() => { + PaymentMethods.openWalletPage(); + }, []); + useEffect(() => { // If the user was previously offline, skip debouncing showing the loader if (!network.isOffline) { @@ -271,7 +275,7 @@ function WalletPage({bankAccountList, betas, cardList, fundList, isLoadingPaymen return; } PaymentMethods.openWalletPage(); - }, [network.isOffline, bankAccountList, cardList, fundList]); + }, [network.isOffline]); useEffect(() => { if (!shouldListenForResize) {