From 4056cd09d4053ca6cfbe47d060441446afb6f769 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 22 Jun 2023 20:58:35 -0300 Subject: [PATCH] fix(RadialProgress): round percentage value to nearest integer using Math.trunc() to improve display accuracy --- src/frontend/src/components/RadialProgress/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/RadialProgress/index.tsx b/src/frontend/src/components/RadialProgress/index.tsx index c9bd8d52c..b468b12e8 100644 --- a/src/frontend/src/components/RadialProgress/index.tsx +++ b/src/frontend/src/components/RadialProgress/index.tsx @@ -13,7 +13,7 @@ export default function RadialProgressComponent({ return (
- {value * 100}% + {Math.trunc(value * 100)}%
); }