Explorar o código

[web] Fix auth ticker

Manav Rathi hai 1 ano
pai
achega
bd2444d353
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/apps/auth/src/pages/auth.tsx

+ 1 - 1
web/apps/auth/src/pages/auth.tsx

@@ -198,7 +198,7 @@ const CodeDisplay: React.FC<CodeDisplay> = ({ code }) => {
             // We need to call regen() once before the interval loop to set the
             // initial otp and nextOTP.
             regen();
-            interval = setInterval(() => regen, periodMs);
+            interval = setInterval(regen, periodMs);
         }, timeToNextCode);
 
         return () => interval && clearInterval(interval);