[web] Fix auth ticker
This commit is contained in:
parent
ca24a86179
commit
bd2444d353
|
@ -198,7 +198,7 @@ const CodeDisplay: React.FC<CodeDisplay> = ({ code }) => {
|
||||||
// We need to call regen() once before the interval loop to set the
|
// We need to call regen() once before the interval loop to set the
|
||||||
// initial otp and nextOTP.
|
// initial otp and nextOTP.
|
||||||
regen();
|
regen();
|
||||||
interval = setInterval(() => regen, periodMs);
|
interval = setInterval(regen, periodMs);
|
||||||
}, timeToNextCode);
|
}, timeToNextCode);
|
||||||
|
|
||||||
return () => interval && clearInterval(interval);
|
return () => interval && clearInterval(interval);
|
||||||
|
|
Loading…
Reference in a new issue