From 5abc705a68edc3462c9bf7b4c40ba5d7e9728b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Wed, 5 Mar 2025 14:04:59 -0500 Subject: [PATCH] fix: infinite timer --- .../twitch/twitch-bot-config/twitch-bot-config.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/src/app/view/twitch/twitch-bot-config/twitch-bot-config.component.ts b/src/src/app/view/twitch/twitch-bot-config/twitch-bot-config.component.ts index fe69767..3390aa4 100644 --- a/src/src/app/view/twitch/twitch-bot-config/twitch-bot-config.component.ts +++ b/src/src/app/view/twitch/twitch-bot-config/twitch-bot-config.component.ts @@ -128,6 +128,8 @@ export class TwitchBotConfigComponent implements OnInit, OnDestroy { if (redirect) { this.timerId = setTimeout(() => { + clearTimeout(this.timerId); + // Need to use window.location here instead of the router because otherwise the external javascript from Google // doesn't reload on the login page, and you can't retry your login until you refresh. //