diff options
Diffstat (limited to 'src/routes/(app)/account/import')
| -rw-r--r-- | src/routes/(app)/account/import/+page.svelte | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/(app)/account/import/+page.svelte b/src/routes/(app)/account/import/+page.svelte index 93616a92..1ae0a932 100644 --- a/src/routes/(app)/account/import/+page.svelte +++ b/src/routes/(app)/account/import/+page.svelte @@ -9,9 +9,9 @@ import { validateMnemonic } from "@scure/bip39"; import { wordlist } from "@scure/bip39/wordlists/english.js"; - let el = $state(), + let el: HTMLButtonElement | undefined = $state(), pasted = $state(), - text = $state(); + text: string = $state(""); let paste = async () => { text = await navigator.clipboard.readText(); @@ -30,7 +30,7 @@ }; run(() => { - if (browser && pasted && text) form.submit() && (pasted = false); + if (browser && pasted && text) el?.click() && (pasted = false); }); </script> |
