mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
fix(import export modal): import not working
!nuf
This commit is contained in:
parent
6167506b89
commit
7b86d5c606
|
@ -37,7 +37,7 @@ const modal = new AnimatedModal({
|
|||
modalEl.querySelector("input")?.addEventListener("input", (e) => {
|
||||
state.value = (e.target as HTMLInputElement).value;
|
||||
});
|
||||
modalEl.querySelector("form")?.addEventListener("submit", async (e) => {
|
||||
modalEl?.addEventListener("submit", async (e) => {
|
||||
e.preventDefault();
|
||||
if (state.mode !== "import") return;
|
||||
if (state.value === "") {
|
||||
|
|
Loading…
Reference in a new issue