From d6a5a3a4587b66491fed0c9b3081c0e0a9eb74b2 Mon Sep 17 00:00:00 2001 From: gofnnp Date: Sun, 24 Sep 2023 12:14:58 +0400 Subject: [PATCH] fix: energy values percent --- src/components/EnergyValues/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EnergyValues/index.tsx b/src/components/EnergyValues/index.tsx index d3cb4e0..b7fb4e2 100644 --- a/src/components/EnergyValues/index.tsx +++ b/src/components/EnergyValues/index.tsx @@ -14,7 +14,7 @@ const colors: Record = { } const valueFormatter = (value: number) => { - return `${(value * 100).toFixed()}%` + return `${(value).toFixed()}%` } function EnergyValues({ className, values }: IEnergyValues): JSX.Element {