Przeglądaj źródła

fix: 217 【bcwin网站】(优化)根据用户当前余额判断游戏跳转页面

Before 7 miesięcy temu
rodzic
commit
d9a82caa5c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/components/Card/Card.tsx

+ 1 - 1
src/components/Card/Card.tsx

@@ -37,7 +37,7 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
             router.push("/login?redirect=/");
             return;
         }
-        if (groupType === 1 && Number(wallet.score) <= 0) {
+        if (groupType === 1 && Number(wallet.score) + wallet.point <= 0) {
             router.push("/deposit");
             return;
         }