fix(RadialProgress): round percentage value to nearest integer using Math.trunc() to improve display accuracy

This commit is contained in:
anovazzi1 2023-06-22 20:58:35 -03:00
commit 4056cd09d4

View file

@ -13,7 +13,7 @@ export default function RadialProgressComponent({
return (
<div className={"radial-progress " + color} style={style}>
<strong className="text-[8px]">{value * 100}%</strong>
<strong className="text-[8px]">{Math.trunc(value * 100)}%</strong>
</div>
);
}