diff --git a/src/app/components/KeyDownload.svelte b/src/app/components/KeyDownload.svelte
index 44271f5b..645491d3 100644
--- a/src/app/components/KeyDownload.svelte
+++ b/src/app/components/KeyDownload.svelte
@@ -2,7 +2,6 @@
import {nsecEncode} from "nostr-tools/nip19"
import {encrypt} from "nostr-tools/nip49"
import {hexToBytes} from "@welshman/lib"
- import {makeSecret} from "@welshman/util"
import {preventDefault, downloadText} from "@lib/html"
import Key from "@assets/icons/key-minimalistic.svg?dataurl"
import ArrowDown from "@assets/icons/arrow-down.svg?dataurl"
@@ -17,13 +16,12 @@
import {PLATFORM_NAME} from "@app/core/state"
type Props = {
+ secret: string
next: () => unknown
submitText?: string
}
- const {next, submitText = "Continue"}: Props = $props()
-
- const secret = makeSecret()
+ const {secret, next, submitText = "Continue"}: Props = $props()
const back = () => history.back()
diff --git a/src/app/components/SignUpKey.svelte b/src/app/components/SignUpKey.svelte
index 09daded2..0085a816 100644
--- a/src/app/components/SignUpKey.svelte
+++ b/src/app/components/SignUpKey.svelte
@@ -9,9 +9,9 @@
profile: Profile
}
- const props: Props = $props()
+ const {secret, profile}: Props = $props()
- const next = () => pushModal(SignUpComplete, props)
+ const next = () => pushModal(SignUpComplete, {secret, profile})
-
+
diff --git a/src/app/components/SignUpProfile.svelte b/src/app/components/SignUpProfile.svelte
index 4e51cf3f..b2f5a22b 100644
--- a/src/app/components/SignUpProfile.svelte
+++ b/src/app/components/SignUpProfile.svelte
@@ -1,6 +1,6 @@