truncate Gauge percentage to 2 decimal places

This commit is contained in:
Alex Holliday committed 2024-11-19 15:28:57 +08:00
1 parent 5a2c6a9aa7
commit 9e7e13baea
1 file changed
+1 -1
@@ -92,7 +92,7 @@ const CustomGauge = ({
fill: theme.typography.body2.color, fill: theme.typography.body2.color,
}} }}
> >
{`${progress}%`} {`${progress.toFixed(2)}%`}
</Typography> </Typography>
</Box> </Box>
); );