aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app.js b/src/app.js
index cba23ba..99343f7 100644
--- a/src/app.js
+++ b/src/app.js
@@ -2768,12 +2768,12 @@ async function broadcast() {
wallet.broadcast(hexTx),
new Promise((_, rej) => setTimeout(() => rej(new Error(t('broadcastTimeout'))), 30000)),
]);
+ wallet.applySentTx(ui.draft.tx); // update balance/history locally, right now
ui.sendResult = { txid };
ui.draft = null;
ui.send = blankSend();
ui.busy = false;
- render(); // show success immediately — don't hold the
- wallet.scan().catch(() => {}); // spinner up for the post-send rescan
+ render(); // the realtime watcher / backstop poll reconciles + confirms later
return;
} catch (e) {
ui.sendError = t('broadcastFailed', { msg: e.message });