aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-07-04 08:02:14 -0700
committerAdam Soltys <[email protected]>2026-07-04 08:02:14 -0700
commitcbbf90ed86c29f2c7c61b216be5e51946adaef52 (patch)
tree6a6ea879f079ae0ec6eb770e3f839cc1d3cfc261 /src
parent2da22a3dc82bc8c0beb456097c2749ebc02d8017 (diff)
downloadcoinosv3-cbbf90ed86c29f2c7c61b216be5e51946adaef52.tar.gz
coinosv3-cbbf90ed86c29f2c7c61b216be5e51946adaef52.zip
Gift claim: correct copy when claiming into an existing wallet
"Claim it into a brand-new wallet that only you control." only fits the new-wallet path; claiming into an existing wallet now says which wallet it lands in ("Claim it into your wallet "Wallet 1"."). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QFAcD4V284DvYZZHP7Rxxy
Diffstat (limited to 'src')
-rw-r--r--src/app.js4
-rw-r--r--src/i18n.js1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index 53cb35b..486fa5b 100644
--- a/src/app.js
+++ b/src/app.js
@@ -2438,7 +2438,9 @@ function claimScreen() {
h('div', { class: 'amt', style: 'font-size:30px' },
h('span', { class: 'amount-pos' }, fmtAmount(total)), ' ', unitTag('unit')
),
- h('p', { class: 'muted', style: 'margin:0' }, t('claimBody'))
+ h('p', { class: 'muted', style: 'margin:0' },
+ (() => { const acc = activeAccount(); // claiming into an existing wallet vs a brand-new one
+ return acc && !acc.provisional ? t('claimBodyExisting', { name: acc.label }) : t('claimBody'); })())
),
ui.claimError && h('div', { class: 'notice err' }, ui.claimError),
ui.busy || ui.claimChecking
diff --git a/src/i18n.js b/src/i18n.js
index 552795d..83af70c 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -288,6 +288,7 @@ const STR = {
giftRevoked: 'Gift revoked',
copyLink: 'Copy link',
claimBody: 'Claim it into a brand-new wallet that only you control.',
+ claimBodyExisting: 'Claim it into your wallet \u201c{name}\u201d.',
claimIntoPrompt: 'Choose where to receive it.',
claimNewWallet: 'Receive into a new wallet',
claimIntoExisting: 'Receive into one of your wallets:',