소스 검색

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

Before 7 달 전
부모
커밋
d9a82caa5c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
         }