aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/gifts.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/gifts.js')
-rw-r--r--src/features/gifts.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/features/gifts.js b/src/features/gifts.js
index 052a107..4d68a50 100644
--- a/src/features/gifts.js
+++ b/src/features/gifts.js
@@ -675,7 +675,7 @@ export function giftsFeature(ctx) {
return h('div', { class: 'input-group' },
h('input', { type: 'number', step: getUnit() === 'sats' ? '1' : '0.00000001', min: '0', inputmode: 'decimal', placeholder: t('giftAmountLabel'),
disabled: ui.giftMax,
- value: ui.giftMax ? (getUnit() === 'sats' ? String(maxVal) : fmtBtc(maxVal)) : ui.giftAmount,
+ value: ui.giftMax ? ctx.amountField(maxVal) : ui.giftAmount,
onInput: (e) => (ui.giftAmount = e.target.value) }),
h('button', { type: 'button', class: ui.giftMax ? 'btn-primary' : '', onClick: () => { ui.giftMax = !ui.giftMax; ui.giftError = ''; render(); } }, t('max')),
h('div', { style: 'display:flex;align-items:center' }, unitTag())