Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
minaxolone committed Apr 26, 2024
1 parent c367c65 commit 10e63d8
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions web-app/src/modules/core/routes/Stats/Stats.tsx
Original file line number Diff line number Diff line change
@@ -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`);
Expand All @@ -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 {
Expand Down Expand Up @@ -83,7 +80,7 @@ const Coinstats = () => {
<dl className="mt-5 grid grid-cols-1 gap-5 lg:grid-cols-2">
<ChartComponent
type="BarChartSupplyConcentration"
title="Indidividuals Liquid Capital Concentration"
title="Individuals Liquid Capital Concentration"
data={data.liquidSupplyConcentration}
/>
<ChartComponent
Expand Down

0 comments on commit 10e63d8

Please sign in to comment.