Skip to content

Commit

Permalink
Merge pull request #30700 from Pujan92/fix/29767
Browse files Browse the repository at this point in the history
Fix: Wallet page does not update instantly when bank account is added or deleted
  • Loading branch information
jasperhuangg authored Nov 2, 2023
2 parents 25ed435 + 3a8ea8f commit b6112c7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/settings/Wallet/WalletPage/WalletPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,6 @@ 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) {
Expand All @@ -275,7 +271,7 @@ function WalletPage({bankAccountList, betas, cardList, fundList, isLoadingPaymen
return;
}
PaymentMethods.openWalletPage();
}, [network.isOffline]);
}, [network.isOffline, bankAccountList, cardList, fundList]);

useEffect(() => {
if (!shouldListenForResize) {
Expand Down

0 comments on commit b6112c7

Please sign in to comment.