Skip to content

Commit 5abc705

Browse files
fix: infinite timer
1 parent e1e96c8 commit 5abc705

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/src/app/view/twitch/twitch-bot-config/twitch-bot-config.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ export class TwitchBotConfigComponent implements OnInit, OnDestroy {
128128

129129
if (redirect) {
130130
this.timerId = setTimeout(() => {
131+
clearTimeout(this.timerId);
132+
131133
// Need to use window.location here instead of the router because otherwise the external javascript from Google
132134
// doesn't reload on the login page, and you can't retry your login until you refresh.
133135
//

0 commit comments

Comments
 (0)