Make sure to clear the timer on TOTP view.
This commit is contained in:
parent
19f3e1f8ca
commit
4927707450
|
@ -28,6 +28,10 @@ export class RefreshingTOTPGridItem extends Component<
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentWillUnmount(): void {
|
||||||
|
clearInterval(this.timer as number);
|
||||||
|
}
|
||||||
|
|
||||||
componentDidMount(): void {
|
componentDidMount(): void {
|
||||||
this.updateTOTPCode();
|
this.updateTOTPCode();
|
||||||
this.timer = setInterval(() => {
|
this.timer = setInterval(() => {
|
||||||
|
|
Loading…
Reference in a new issue