Browse Source

feat: 修改

year 3 tuần trước cách đây
mục cha
commit
0d35286687

+ 7 - 5
src/app/[locale]/(TabBar)/deposit/component/withdraw/index.tsx

@@ -86,11 +86,13 @@ const Withdraw = () => {
             canWithdraw = false;
         }
 
+        console.log(target_point_rollover);
+
         return {
             canWithdraw,
             percent: percentage(current, total),
-            percentScore: (current_score_rollover / target_score_rollover) * 100,
-            percentPoint: (current_point_rollover / target_point_rollover) * 100,
+            percentScore: (current_score_rollover / (target_score_rollover || 1)) * 100,
+            percentPoint: (current_point_rollover / (target_point_rollover || 1)) * 100,
             waitScore,
             waitPoint,
             wait: waitScore + waitPoint,
@@ -685,7 +687,7 @@ const Withdraw = () => {
                         </div>
                     </div>
                 }
-                visible={false}
+                visible={true}
                 ref={successModelRef}
                 getContainer={document.querySelector("#app")}
                 className={styles.gameModal}
@@ -712,7 +714,7 @@ const Withdraw = () => {
                 <div className={"mt-[0.0694rem] flex justify-center"}>
                     <Button
                         color={"primary"}
-                        className={"ml-[30px] flex-1 rounded-[.2rem_!important]"}
+                        className={"flex-1 rounded-[.2rem_!important]"}
                         style={{
                             "--background-color": "#ebc71f",
                             "--border-color": "#ebc71f",
@@ -724,7 +726,7 @@ const Withdraw = () => {
                     </Button>
                     <Button
                         color={"primary"}
-                        className={"ml-[30px] flex-1 rounded-[.2rem_!important]"}
+                        className={"ml-[30px!important] flex-1 rounded-[.2rem_!important]"}
                         style={{
                             "--background-color": "#11de68",
                             "--border-color": "#11de68",