aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-15 09:55:17 -0700
committerAdam Soltys <[email protected]>2026-06-15 09:55:17 -0700
commit0b592712f6abbbd0ef45db9b29e8b61d058de4f2 (patch)
treec11d4adb3b77e30ad02e3e7a653df8c1d80edbd4 /src/app.js
parentad0cdd7066d626da34da8b5e613799fb88286b1a (diff)
downloadcoinosv3-0b592712f6abbbd0ef45db9b29e8b61d058de4f2.tar.gz
coinosv3-0b592712f6abbbd0ef45db9b29e8b61d058de4f2.zip
Default custom fee to the economy rate
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js8
1 files changed, 7 insertions, 1 deletions
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)
)
),