diff options
| author | Adam Soltys <[email protected]> | 2024-12-03 10:14:59 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-03 10:14:59 -0800 |
| commit | d86e36b138713a70f39162fabbb319fd59d74418 (patch) | |
| tree | 13efeb73a27123ecca153a4babe8da5d48e84b5f | |
| parent | 2f54bd38f33ddf47a9a235a25db1db59af554c82 (diff) | |
| download | coinos-ui-d86e36b138713a70f39162fabbb319fd59d74418.tar.gz coinos-ui-d86e36b138713a70f39162fabbb319fd59d74418.zip | |
lud16 in nwc string
| -rw-r--r-- | src/routes/(app)/account/[id]/+page.svelte | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/(app)/account/[id]/+page.svelte b/src/routes/(app)/account/[id]/+page.svelte index 26472da0..61559943 100644 --- a/src/routes/(app)/account/[id]/+page.svelte +++ b/src/routes/(app)/account/[id]/+page.svelte @@ -1,4 +1,5 @@ <script> + import { page } from "$app/stores"; import Mnemonic from "$comp/Mnemonic.svelte"; import WalletPass from "$comp/WalletPass.svelte"; import { goto } from "$app/navigation"; @@ -22,6 +23,8 @@ let cancel = $state(() => (passwordPrompt = false)); let toggle = () => (passwordPrompt = !passwordPrompt); + let lud16 = $derived(`${user.username}@${$page.url.host}`); + let submit = $state(async () => { toggle(); let entropy = await decrypt(seed, password); @@ -41,7 +44,7 @@ let revealNwc = () => (nwc = `nostr+walletconnect://${pk}?relay=${encodeURIComponent( relay, - )}&secret=${user.nwc}`); + )}&secret=${user.nwc}&lud16=${lud16}`); </script> <div class="space-y-5"> |
