From f06bca37263e22d60c78f3119a089acb23bb2d21 Mon Sep 17 00:00:00 2001 From: Max Alekseenko Date: Thu, 28 Nov 2019 16:51:40 +0300 Subject: [PATCH] fix linter errors --- apps/block_scout_web/assets/js/chart-loader.js | 16 ++++++++-------- .../assets/js/lib/market_history_chart.js | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/block_scout_web/assets/js/chart-loader.js b/apps/block_scout_web/assets/js/chart-loader.js index 87bd3cdbed..6e275341a1 100644 --- a/apps/block_scout_web/assets/js/chart-loader.js +++ b/apps/block_scout_web/assets/js/chart-loader.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) diff --git a/apps/block_scout_web/assets/js/lib/market_history_chart.js b/apps/block_scout_web/assets/js/lib/market_history_chart.js index 56fd01e343..0f173b22ff 100644 --- a/apps/block_scout_web/assets/js/lib/market_history_chart.js +++ b/apps/block_scout_web/assets/js/lib/market_history_chart.js @@ -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,