Skip to content

Commit 8aa198b

Browse files
fix 0 balance issue
1 parent 197d85b commit 8aa198b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/fetchBalancesForWallet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ async function fetchBalancesForWallet({
214214
chain.id === toChain.id
215215
? !(
216216
mode === "fund_wallet" && account.address === accountAddress
217-
)
217+
) && balance.value > 0n
218218
: balance.value > 0n;
219219

220220
if (include) {

0 commit comments

Comments
 (0)