From 9e7e13baea23a80306ee6c3a1a50090fc4cd0b51 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 19 Nov 2024 15:28:57 +0800 Subject: [PATCH] truncate Gauge percentage to 2 decimal places --- Client/src/Components/Charts/CustomGauge/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/src/Components/Charts/CustomGauge/index.jsx b/Client/src/Components/Charts/CustomGauge/index.jsx index d00ab7f5f..387efc64f 100644 --- a/Client/src/Components/Charts/CustomGauge/index.jsx +++ b/Client/src/Components/Charts/CustomGauge/index.jsx @@ -92,7 +92,7 @@ const CustomGauge = ({ fill: theme.typography.body2.color, }} > - {`${progress}%`} + {`${progress.toFixed(2)}%`} );