diff options
| author | Adam Soltys <[email protected]> | 2026-10-25 15:07:15 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-25 15:07:15 -0700 |
| commit | 1bc09bd9963afc65228746f9d37aea470a5238f9 (patch) | |
| tree | 4394d7ac26c6f56e9927280c2a7615c25fb77109 /src/features | |
| parent | 58f7de1729bac5db2ade612ed1fd159b22ef587e (diff) | |
| download | coinosv3-1bc09bd9963afc65228746f9d37aea470a5238f9.tar.gz coinosv3-1bc09bd9963afc65228746f9d37aea470a5238f9.zip | |
An Ark gift's claim button just says "Claim it now" (no "(instant, no fee)"); an on-chain gift still shows its network fee
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/gifts.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/features/gifts.js b/src/features/gifts.js index bcc9b3f..399a807 100644 --- a/src/features/gifts.js +++ b/src/features/gifts.js @@ -346,10 +346,12 @@ export function giftsFeature(ctx) { !ui.claimError && ui.claimNotVisible && h('div', { class: 'notice info' }, t('claimNotVisibleBody')), ui.busy || ui.claimChecking ? h('button', { class: 'btn-primary btn-block', disabled: true }, h('span', { class: 'spinner' })) + // an ark gift costs nothing to claim: just the button (an on-chain + // one says what its network fee will take) : h('button', { class: 'btn-primary btn-block', onClick: doClaim }, - t('claimBtn'), ' ', - h('span', { style: 'font-size:0.85em;opacity:0.9' }, - '(' + (ag ? t('claimArkFree') : t('claimFeeNote', { n: fmtAmount(estFee) + ' ' + unitLabel() })) + ')')) + ...(ag ? [t('claimNowBtn')] : [t('claimBtn'), ' ', + h('span', { style: 'font-size:0.85em;opacity:0.9' }, + '(' + t('claimFeeNote', { n: fmtAmount(estFee) + ' ' + unitLabel() }) + ')')])) ); } |
