Skip to content

Commit 1287cf1

Browse files
committed
Fix progress percentage to 2 decimal places
1 parent 30e8573 commit 1287cf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/DeviceJobProgressPercentageRadialBar/DeviceJobProgressPercentageRadialBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { ApexOptions } from 'apexcharts';
22
import Chart from '../Chart';
3+
import { roundToTwoDecimalPlaces } from '../../utils/utils';
34

45
interface DeviceJobProgressPercentageRadialBarProps {
56
progressPercentage: number;
@@ -44,7 +45,7 @@ const DeviceJobProgressPercentageRadialBar = ({
4445
labels: ['Progress'],
4546
};
4647

47-
const series = [progressPercentage];
48+
const series = [roundToTwoDecimalPlaces(progressPercentage)];
4849

4950
return (
5051
<Chart

0 commit comments

Comments
 (0)