From 1bc09bd9963afc65228746f9d37aea470a5238f9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 25 Oct 2026 15:07:15 -0700 Subject: 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 Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4 --- src/features/gifts.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/features') 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() }) + ')')])) ); } -- cgit v1.2.3