aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
)
),