Skip to content

Commit 69cc227

Browse files
authored
fix(event-handlers): commandOverride not working due to incorrect check (@byseif21) (monkeytypegame#7330)
it returns null when attribute doesn't exist, not undefined
1 parent e2d9b79 commit 69cc227

File tree

1 file changed

+1
-1
lines changed
  • frontend/src/ts/event-handlers

1 file changed

+1
-1
lines changed

frontend/src/ts/event-handlers/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const testPage = qs(".pageTest");
2424
testPage?.onChild("click", "#testModesNotice .textButton", async (event) => {
2525
const target = event.childTarget as HTMLElement;
2626
const attr = target?.getAttribute("commands");
27-
if (attr === undefined) return;
27+
if (attr === null) return;
2828
Commandline.show({ subgroupOverride: attr as ConfigKey | ListsObjectKeys });
2929
});
3030

0 commit comments

Comments
 (0)