fix linter errors

pull/2887/head
Max Alekseenko 5 years ago
parent c5ba8e7b0d
commit f06bca3726
  1. 16
      apps/block_scout_web/assets/js/chart-loader.js
  2. 2
      apps/block_scout_web/assets/js/lib/market_history_chart.js

@ -4,11 +4,11 @@ import { formatAllUsdValues, updateAllCalculatedUsdValues } from './lib/currency
import { createMarketHistoryChart } from './lib/market_history_chart'
const checkExist = setInterval(() => {
const el = $('[data-chart="marketHistoryChart"]')[0]
if (el) {
clearInterval(checkExist)
createMarketHistoryChart(el, true)
formatAllUsdValues()
updateAllCalculatedUsdValues()
}
}, 100);
const el = $('[data-chart="marketHistoryChart"]')[0]
if (el) {
clearInterval(checkExist)
createMarketHistoryChart(el, true)
formatAllUsdValues()
updateAllCalculatedUsdValues()
}
}, 100)

@ -117,7 +117,7 @@ if (localStorage.getItem('current-color-mode') === 'dark') {
class MarketHistoryChart {
constructor (el, availableSupply, marketHistoryData, animation) {
this.price = {
label: window.localized ? window.localized['Price'] : 'Price',
label: window.localized ? window.localized.Price : 'Price',
yAxisID: 'price',
data: getPriceData(marketHistoryData),
fill: false,

Loading…
Cancel
Save