fix(RadialProgress): round percentage value to nearest integer using Math.trunc() to improve display accuracy
This commit is contained in:
parent
76ce2f9cfa
commit
4056cd09d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue