Parcourir la source

setMTime((origin) => origin + 1);

visuddhinanda il y a 3 ans
Parent
commit
176ca00575
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      dashboard/src/components/general/TimeShow.tsx

+ 1 - 1
dashboard/src/components/general/TimeShow.tsx

@@ -25,7 +25,7 @@ const TimeShowWidget = ({
       return;
     }
     let timer = setInterval(() => {
-      setMTime((mTime) => mTime + 1);
+      setMTime((origin) => origin + 1);
     }, 1000 * 60);
     return () => {
       clearInterval(timer);