fixed the _.js import errors

pull/2404/head
slightlycyborg 5 years ago
parent 2e39ef50e1
commit bf0dae03a8
  1. 3
      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)
}
}

Loading…
Cancel
Save