aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/AppForm.svelte5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/AppForm.svelte b/src/components/AppForm.svelte
index cca4844b..db8d97a1 100644
--- a/src/components/AppForm.svelte
+++ b/src/components/AppForm.svelte
@@ -25,9 +25,10 @@
});
let generate = async () => {
- secret = bytesToHex(randomBytes(32));
+ let secretBytes = randomBytes(32);
+ secret = bytesToHex(secretBytes);
const { getPublicKey } = await import("nostr-tools");
- pubkey = getPublicKey(secret);
+ pubkey = getPublicKey(secretBytes);
};
let lud16 = $derived(`${user.username}@${$page.url.host}`);