fix(RadialProgress): round percentage value to nearest integer to improve readability and consistency

This commit is contained in:
anovazzi1 2023-06-22 20:53:52 -03:00
commit 01545f316e

View file

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