Explorar o código

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

Before hai 7 meses
pai
achega
d9a82caa5c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         }