aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2019-02-13 03:05:06 +0800
committerfrankiebee <frankie.diamond@gmail.com>2019-02-13 03:05:06 +0800
commitc10fb3ce3fc7c4849c15bd5448afcd67d87f0edb (patch)
treea8764c178bfa876eb5c2d79092fef9a8751ca189
parent7e64a578a49edcbf4162bc61b7814885286a35e0 (diff)
downloadtangerine-wallet-browser-c10fb3ce3fc7c4849c15bd5448afcd67d87f0edb.tar
tangerine-wallet-browser-c10fb3ce3fc7c4849c15bd5448afcd67d87f0edb.tar.gz
tangerine-wallet-browser-c10fb3ce3fc7c4849c15bd5448afcd67d87f0edb.tar.bz2
tangerine-wallet-browser-c10fb3ce3fc7c4849c15bd5448afcd67d87f0edb.tar.lz
tangerine-wallet-browser-c10fb3ce3fc7c4849c15bd5448afcd67d87f0edb.tar.xz
tangerine-wallet-browser-c10fb3ce3fc7c4849c15bd5448afcd67d87f0edb.tar.zst
tangerine-wallet-browser-c10fb3ce3fc7c4849c15bd5448afcd67d87f0edb.zip
fix typo
-rw-r--r--app/scripts/controllers/recent-blocks.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/scripts/controllers/recent-blocks.js b/app/scripts/controllers/recent-blocks.js
index b88aaeb0c..982ad2aa4 100644
--- a/app/scripts/controllers/recent-blocks.js
+++ b/app/scripts/controllers/recent-blocks.js
@@ -48,19 +48,19 @@ class RecentBlocksController {
log.error(err)
}
}
- let isListeng = false
+ let isListening = false
const { type } = networkController.getProviderConfig()
if (!INFURA_PROVIDER_TYPES.includes(type) && type !== 'loading') {
this.blockTracker.on('latest', blockListner)
- isListeng = true
+ isListening = true
}
networkController.on('networkDidChange', (newType) => {
- if (INFURA_PROVIDER_TYPES.includes(newType) && isListeng) {
+ if (INFURA_PROVIDER_TYPES.includes(newType) && isListening) {
this.blockTracker.removeListener('latest', blockListner)
} else if (
!INFURA_PROVIDER_TYPES.includes(type) &&
type !== 'loading' &&
- !isListeng
+ !isListening
) {
this.blockTracker.on('latest', blockListner)