Leon há 1 ano atrás
pai
commit
722992855f

+ 7 - 0
src/features/trackTimeDuration/components/CheckAccess.tsx

@@ -69,11 +69,17 @@ export default function CheckAccess(props: { record: any, count: number }) {
                     if (global.indexPageRefresh) {
                         global.indexPageRefresh()
                     }
+                    if (global.refreshStreaks){
+                        global.refreshStreaks()
+                    }
                 }
                 if (sleep_expire && new Date().getTime() > sleep_expire && obj.current_record.status == 'WAIT_FOR_START') {
                     if (global.indexPageRefresh) {
                         global.indexPageRefresh()
                     }
+                    if (global.refreshStreaks){
+                        global.refreshStreaks()
+                    }
                 }
 
             }
@@ -203,6 +209,7 @@ export default function CheckAccess(props: { record: any, count: number }) {
                     return;
                 }
 
+                setKeepContent(false)
                 setShowFastAlert(true)
                 setAlertTitle(t('feature.check_access.stay_qualified.title'))
                 setAlertContent(t('feature.check_access.stay_qualified.desc', { fast_streak_day: streak_fast_current, sleep_streak_day: streak_sleep_current }))