diff --git a/src/pages/Secrets/TOTP/TOTPView.tsx b/src/pages/Secrets/TOTP/TOTPView.tsx index 822a6d1..0613dba 100644 --- a/src/pages/Secrets/TOTP/TOTPView.tsx +++ b/src/pages/Secrets/TOTP/TOTPView.tsx @@ -28,6 +28,10 @@ export class RefreshingTOTPGridItem extends Component< }); } + componentWillUnmount(): void { + clearInterval(this.timer as number); + } + componentDidMount(): void { this.updateTOTPCode(); this.timer = setInterval(() => {