From 8e0425a065666dbeda9779c18151454d3cb722e5 Mon Sep 17 00:00:00 2001 From: Georgia Monahan Date: Fri, 20 Oct 2023 11:14:58 +0100 Subject: [PATCH] Show wallet if user hasa linkedAccountID OR if user has available funds --- src/pages/settings/Wallet/WalletPage/WalletPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/Wallet/WalletPage/WalletPage.js b/src/pages/settings/Wallet/WalletPage/WalletPage.js index daf91012747e..48b4bfe18e1a 100644 --- a/src/pages/settings/Wallet/WalletPage/WalletPage.js +++ b/src/pages/settings/Wallet/WalletPage/WalletPage.js @@ -61,7 +61,7 @@ function WalletPage({bankAccountList, betas, cardList, fundList, isLoadingPaymen const [showConfirmDeleteContent, setShowConfirmDeleteContent] = useState(false); const hasBankAccount = !_.isEmpty(bankAccountList) || !_.isEmpty(fundList); - const hasWallet = !_.isEmpty(userWallet); + const hasWallet = userWallet.walletLinkedAccountID !== 0 || userWallet.availableBalance > 0; const hasActivatedWallet = _.contains([CONST.WALLET.TIER_NAME.GOLD, CONST.WALLET.TIER_NAME.PLATINUM], userWallet.tierName); const hasAssignedCard = !_.isEmpty(cardList); const shouldShowEmptyState = !hasBankAccount && !hasWallet && !hasAssignedCard;