aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js
index 53e118e..9c9c22a 100644
--- a/src/app.js
+++ b/src/app.js
@@ -233,6 +233,9 @@ function render() {
? howItWorksScreen()
: unlockScreen();
root.replaceChildren(screen, footer());
+ // Fast-poll the receive address only while the user is actually watching for a
+ // payment (wallet screen, Receive tab, online). Idempotent — safe each render.
+ wallet.setWatchReceive(ui.screen === 'wallet' && ui.tab === 'receive' && !wallet.offline);
}
wallet.subscribe(render);