diff options
| author | Adam Soltys <[email protected]> | 2026-06-15 09:55:17 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-15 09:55:17 -0700 |
| commit | 0b592712f6abbbd0ef45db9b29e8b61d058de4f2 (patch) | |
| tree | c11d4adb3b77e30ad02e3e7a653df8c1d80edbd4 | |
| parent | ad0cdd7066d626da34da8b5e613799fb88286b1a (diff) | |
| download | coinosv3-0b592712f6abbbd0ef45db9b29e8b61d058de4f2.tar.gz coinosv3-0b592712f6abbbd0ef45db9b29e8b61d058de4f2.zip | |
Default custom fee to the economy rate
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
| -rw-r--r-- | src/app.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) ) ), |
