From 0b592712f6abbbd0ef45db9b29e8b61d058de4f2 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 15 Jun 2026 09:55:17 -0700 Subject: Default custom fee to the economy rate Co-Authored-By: Claude Opus 4.8 (1M context) --- src/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index eee2382..e0babba 100644 --- a/src/app.js +++ b/src/app.js @@ -652,7 +652,13 @@ function sendForm() { feeOpts.map(([k, label]) => h('button', { type: 'button', class: (s.feeChoice === k ? 'active ' : '') + 'grow', - onClick: () => { s.feeChoice = k; render(); }, + onClick: () => { + s.feeChoice = k; + if (k === 'custom' && !s.customFee) { + s.customFee = String((wallet.feeRates && wallet.feeRates.economyFee) || 1); + } + render(); + }, }, label) ) ), -- cgit v1.2.3