From bf0dae03a84d5cfb3ae4713ffdf2cd570e2ebabe Mon Sep 17 00:00:00 2001 From: slightlycyborg Date: Fri, 26 Jul 2019 04:09:27 +0000 Subject: [PATCH] fixed the _.js import errors --- apps/block_scout_web/assets/js/pages/chain.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/block_scout_web/assets/js/pages/chain.js b/apps/block_scout_web/assets/js/pages/chain.js index 8a71893171..14d0f48535 100644 --- a/apps/block_scout_web/assets/js/pages/chain.js +++ b/apps/block_scout_web/assets/js/pages/chain.js @@ -1,4 +1,3 @@ -/* global _ */ import $ from 'jquery' import omit from 'lodash/omit' import first from 'lodash/first' @@ -155,7 +154,7 @@ const elements = { if (chart && !(oldState.availableSupply === state.availableSupply && oldState.marketHistoryData === state.marketHistoryData) && state.availableSupply) { chart.updateMarketHistory(state.availableSupply, state.marketHistoryData) } - if (chart && !(_.isEqual(oldState.transactionStats, state.transactionStats))) { + if (chart && !(JSON.stringify(oldState.transactionStats) == JSON.stringify(state.transactionStats))) { chart.updateTransactionHistory(state.transactionStats) } }