diff options
Diffstat (limited to 'src/components/Account.svelte')
| -rw-r--r-- | src/components/Account.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Account.svelte b/src/components/Account.svelte index 7c231219..12fa8100 100644 --- a/src/components/Account.svelte +++ b/src/components/Account.svelte @@ -7,7 +7,6 @@ import Icon from "$comp/Icon.svelte"; import Balance from "$comp/Balance.svelte"; import { t } from "$lib/translations"; - import { decrypt } from "nostr-tools/nip49"; import { arkkey } from "$lib/ark"; let { user, rate, account, last } = $props(); @@ -43,7 +42,8 @@ } }; - let submitPassword = () => { + let submitPassword = async () => { + const { decrypt } = await import("nostr-tools/nip49"); $arkkey = hex.encode(decrypt(seed, password)); passwordPrompt = false; if (pendingUrl) { |
