aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/scripts/lib/auto-reload.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/auto-reload.js b/app/scripts/lib/auto-reload.js
index 30ddd2395..534047330 100644
--- a/app/scripts/lib/auto-reload.js
+++ b/app/scripts/lib/auto-reload.js
@@ -20,9 +20,9 @@ function setupDappAutoReload (web3, observable) {
if (!networkVersion) networkVersion = curentNetVersion
if (curentNetVersion !== networkVersion && web3._used) {
- const timeSenseUse = Date.now() - web3._used
+ const timeSinceUse = Date.now() - web3._used
// if web3 was recently used then delay the reloading of the page
- timeSenseUse > 500 ? triggerReset() : setTimeout(triggerReset, 500)
+ timeSinceUse > 500 ? triggerReset() : setTimeout(triggerReset, 500)
// prevent reentry into if statement if state updates again before
// reload
networkVersion = curentNetVersion