diff options
| author | Adam Soltys <[email protected]> | 2026-08-04 01:13:33 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-04 01:13:33 -0700 |
| commit | ddcba79565c797d06d1f1cc066f78197d0e8ce70 (patch) | |
| tree | 6f11583b424eeb84cd30ef4db0f69e4fbc3bef53 /src/app.js | |
| parent | 971db911d47af391695a9d83a3d31c089bfee782 (diff) | |
| download | coinosv3-ddcba79565c797d06d1f1cc066f78197d0e8ce70.tar.gz coinosv3-ddcba79565c797d06d1f1cc066f78197d0e8ce70.zip | |
A restored login ends the wizard instead of stalling in it
Signing in mid-wizard with a key whose wallet was restored left you on
the sign-in step: the back-button hold matched the restored account and
blocked the auto-advance. A login now clears the hold explicitly — and a
restored wallet skips the rest of onboarding entirely; it was already
onboarded wherever it came from.
Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3597,6 +3597,14 @@ const ctx = { getAccount: () => accountSel(), // Open (or create) a wallet from a mnemonic — used by nostr login. openMnemonic: async (mnemonic, passphrase, opts) => enterWallet(mnemonic, passphrase, opts), + // A nostr login that lands mid-wizard: a restored wallet has been through + // onboarding elsewhere, so the wizard ends; a fresh one just releases the + // back-button hold so the wizard advances to naming it. + onbNostrLogin: (restored) => { + if (!ui.onb) return; + if (restored) { ui.onb = null; try { localStorage.removeItem(ONB_STEP_KEY); } catch {} } + else ui.onb.heldFor = null; + }, }; const FEATURES = buildFeatures(ctx); |
