mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 11:26:13 +08:00
Fix presets bug
This commit is contained in:
parent
6669cd60b5
commit
d88d1a4ba9
1 changed files with 1 additions and 1 deletions
|
|
@ -807,7 +807,7 @@ qs(".pageSettings .section.presets")?.onChild(
|
|||
"click",
|
||||
".presetsList .preset .presetButton",
|
||||
async (e) => {
|
||||
const target = e.currentTarget as HTMLElement;
|
||||
const target = e.target as HTMLElement;
|
||||
const presetid = target.parentElement?.getAttribute("data-id") as string;
|
||||
await PresetController.apply(presetid);
|
||||
void update();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue