浏览代码

[web] Fix auth ticker (#1841)

Manav Rathi 1 年之前
父节点
当前提交
a0d26c860c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);