Explorar el Código

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

visuddhinanda hace 2 años
padre
commit
176ca00575
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);