Skip to content

Commit 6234462

Browse files
authored
fix: fix ProgressViewer background (#556)
1 parent 1da83f1 commit 6234462

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/ProgressViewer/ProgressViewer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export function ProgressViewer({
6666
warningThreshold = 60,
6767
dangerThreshold = 80,
6868
}: ProgressViewerProps) {
69-
let fillWidth = Math.round((parseFloat(String(value)) / parseFloat(String(capacity))) * 100);
69+
let fillWidth =
70+
Math.round((parseFloat(String(value)) / parseFloat(String(capacity))) * 100) || 0;
7071
fillWidth = fillWidth > 100 ? 100 : fillWidth;
7172
let valueText: number | string | undefined = value,
7273
capacityText: number | string | undefined = capacity,

0 commit comments

Comments
 (0)