Skip to content

Commit

Permalink
Show wallet if user hasa linkedAccountID OR if user has available funds
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Oct 20, 2023
1 parent dbb3f97 commit 8e0425a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/settings/Wallet/WalletPage/WalletPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8e0425a

Please sign in to comment.