diff options
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/names.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/features/names.js b/src/features/names.js index ea94d2a..a29ee7d 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -457,6 +457,9 @@ export function namesFeature(ctx) { // name back, which the wallet key alone could never prove. const signer = await Promise.resolve(hook('nostrLoginResume')).catch(() => null); await claimRequestedName(name, signer ? { signer, manager: wallet.nostrPubkey() } : {}); + // the wizard's Spending step tells a name claimed here from one + // the registrar handed back (an account set up before) + if (ui.onb && ui.onb.step === 'spend') ui.onb.claimedHere = name; ui.nameClaim = ''; ui.nameEditOpen = false; toast(t('namesClaimed', { name: `${name}@${DOMAIN()}` })); @@ -925,7 +928,10 @@ export function namesFeature(ctx) { // for wallets with a history. The background claim still runs. identityGenerated() { checked = true; }, // the onboarding wizard renders the same claim form on its username step - namesClaimForm() { return claimForm(true); }, + // Nothing to type into until the registrar has answered who this wallet + // already is (the wizard shows "Getting things ready…" meanwhile): a + // restored account's name arrives in that window and ends the step. + namesClaimForm() { return checked ? claimForm(true) : null; }, // claim a specific name (the migration flow, after coinos.io released it) namesClaimName(name, opts) { return claimRequestedName(String(name).toLowerCase(), opts || {}); }, stop() { clearTimeout(retryTimer); clearTimeout(deadline); deadline = null; }, |
