Skip to content

Commit

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

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

0 comments on commit 5d49047

Please sign in to comment.