From 59359581ae8a25a6a55f9e9122b94ceca20e186b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 15 Jun 2026 09:56:53 -0700 Subject: Set amount step to 0.00000001 for BTC (1 for sats) Co-Authored-By: Claude Opus 4.8 (1M context) --- src/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/app.js b/src/app.js index 4f759bc..208af57 100644 --- a/src/app.js +++ b/src/app.js @@ -626,7 +626,8 @@ function sendForm() { 'div', { class: 'input-group' }, h('input', { - type: 'number', step: 'any', min: '0', placeholder: s.unit === 'sats' ? '0' : '0.00000000', + type: 'number', step: s.unit === 'sats' ? '1' : '0.00000001', min: '0', + placeholder: s.unit === 'sats' ? '0' : '0.00000000', disabled: s.max, value: s.max ? (s.unit === 'sats' ? String(estimatedMaxSats()) : fmtBtc(estimatedMaxSats())) -- cgit v1.2.3