diff --git a/web-app/src/modules/core/routes/Stats/Stats.tsx b/web-app/src/modules/core/routes/Stats/Stats.tsx index 8f1f6f9..4d3916a 100644 --- a/web-app/src/modules/core/routes/Stats/Stats.tsx +++ b/web-app/src/modules/core/routes/Stats/Stats.tsx @@ -1,12 +1,12 @@ -import { useEffect, useState } from "react"; -import ReactECharts from "echarts-for-react"; +import { useEffect, useState } from 'react'; +import ReactECharts from 'echarts-for-react'; -import { config } from "../../../../config"; -import Money from "../../../ui/Money"; -import ChartComponent from "./ChartComponent"; -import StatItem from "./components/StatItem"; -import StatsContainer from "./components/StatsContainer"; -import Page from "../../../ui/Page"; +import { config } from '../../../../config'; +import Money from '../../../ui/Money'; +import ChartComponent from './ChartComponent'; +import StatItem from './components/StatItem'; +import StatsContainer from './components/StatsContainer'; +import Page from '../../../ui/Page'; const getData = async () => { const res = await fetch(`${config.apiHost}/stats`); @@ -25,11 +25,8 @@ const Coinstats = () => { const data = await getData(); - const lockedCoins = data.lockedCoins.map((it: [number, number]) => [ - it[0] * 1e3, - it[1], - ]); - setData({ ...data, lockedCoins}); + const lockedCoins = data.lockedCoins.map((it: [number, number]) => [it[0] * 1e3, it[1]]); + setData({ ...data, lockedCoins }); } catch (error) { console.error(error); } finally { @@ -83,7 +80,7 @@ const Coinstats = () => {