Skip to content

Commit 0ee4b29

Browse files
authored
fix(settings): skip update settings page if not active (@fehmer) (monkeytypegame#6783)
1 parent 060a753 commit 0ee4b29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/src/ts/pages/settings.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,10 @@ export async function update(
796796
eventKey?: ConfigEvent.ConfigEventKey;
797797
} = {}
798798
): Promise<void> {
799+
if (ActivePage.get() !== "settings") {
800+
return;
801+
}
802+
799803
if (Config.showKeyTips) {
800804
$(".pageSettings .tip").removeClass("hidden");
801805
} else {

0 commit comments

Comments
 (0)