diff options
author | Carles Mitjans <[email protected]> | 2024-06-27 13:29:26 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-06-27 13:29:26 +0200 |
commit | 3346b3891aff51873fa3949bde269aad11f25d61 (patch) | |
tree | e90b357fec35ab1275f29a537d06643757539dfa | |
parent | 29bd0df3795ef472cf13ff80328d0b9ffdb27db5 (diff) | |
download | monkeytype-3346b3891aff51873fa3949bde269aad11f25d61.tar.gz monkeytype-3346b3891aff51873fa3949bde269aad11f25d61.zip |
fix(test): apply highlight mode when loading (mitjans) (#5533)
-rw-r--r-- | frontend/src/ts/test/test-ui.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/ts/test/test-ui.ts b/frontend/src/ts/test/test-ui.ts index 033c7538e..bc7aa28ab 100644 --- a/frontend/src/ts/test/test-ui.ts +++ b/frontend/src/ts/test/test-ui.ts @@ -155,9 +155,9 @@ ConfigEvent.subscribe((eventKey, eventValue, nosave) => { if (eventKey === "theme") void applyBurstHeatmap(); if (eventValue === undefined) return; - if (eventKey === "highlightMode" && ActivePage.get() === "test") { + if (eventKey === "highlightMode") { highlightMode(eventValue as SharedTypes.Config.HighlightMode); - updateActiveElement(); + if (ActivePage.get() === "test") updateActiveElement(); } if (typeof eventValue !== "boolean") return; |