1
0
Fork 0

Make sure to clear the timer on TOTP view.

This commit is contained in:
Kitteh 2021-05-25 12:08:21 +01:00
parent 19f3e1f8ca
commit 4927707450

View file

@ -28,6 +28,10 @@ export class RefreshingTOTPGridItem extends Component<
});
}
componentWillUnmount(): void {
clearInterval(this.timer as number);
}
componentDidMount(): void {
this.updateTOTPCode();
this.timer = setInterval(() => {