Skip to content

Commit 5f5ed02

Browse files
fix: allow user to bet only with contract balance
1 parent 2fe22ef commit 5f5ed02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/FortuneTigerBetCard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ export default function FortuneTigerBetCard({
268268
}
269269

270270
// If connected but no balance available yet (need authorization)
271-
if (balance === 0n) {
271+
// Only show auth popup if BOTH wallet and contract balance are 0
272+
if (balance === 0n && contractBalance === 0n) {
272273
setShowAuthPopup(true);
273274
return;
274275
}

0 commit comments

Comments
 (0)