year пре 1 месец
родитељ
комит
08b83a1248
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      src/app/[locale]/(TabBar)/profile/ProfileHeader.tsx

+ 4 - 2
src/app/[locale]/(TabBar)/profile/ProfileHeader.tsx

@@ -356,10 +356,12 @@ export const ProfileHeader = (props: Props) => {
         const curMul = wallet.target_point_rollover / ((wallet?.score || 0) + (wallet.point || 0));
         const config = wallet.no_bonus_config;
         if (curMul >= (config || 0) && !isShowed) {
-            setIsShowNoBounsWarn(true);
+            setTimeout(() => {
+                setIsShowNoBounsWarn(true);
+            }, 1000);
             setIsShowed(true);
         }
-    }, [wallet]);
+    }, [wallet, isShowed]);
 
     const handler = () => {
         if (!!wallet.score) {