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' import { createMarketHistoryChart } from './lib/market_history_chart'
const checkExist = setInterval(() => { const checkExist = setInterval(() => {
const el = $('[data-chart="marketHistoryChart"]')[0] const el = $('[data-chart="marketHistoryChart"]')[0]
if (el) { if (el) {
clearInterval(checkExist) clearInterval(checkExist)
createMarketHistoryChart(el, true) createMarketHistoryChart(el, true)
formatAllUsdValues() formatAllUsdValues()
updateAllCalculatedUsdValues() updateAllCalculatedUsdValues()
} }
}, 100); }, 100)

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

Loading…
Cancel
Save