From c10fb3ce3fc7c4849c15bd5448afcd67d87f0edb Mon Sep 17 00:00:00 2001 From: frankiebee Date: Tue, 12 Feb 2019 09:05:06 -1000 Subject: [PATCH] fix typo --- app/scripts/controllers/recent-blocks.js | 8 ++++---- 1 file 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)