Ver código fonte

[web] Fix auth ticker

Manav Rathi 1 ano atrás
pai
commit
bd2444d353
1 arquivos alterados com 1 adições e 1 exclusões
  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);