We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1da83f1 commit 6234462Copy full SHA for 6234462
src/components/ProgressViewer/ProgressViewer.tsx
@@ -66,7 +66,8 @@ export function ProgressViewer({
66
warningThreshold = 60,
67
dangerThreshold = 80,
68
}: ProgressViewerProps) {
69
- let fillWidth = Math.round((parseFloat(String(value)) / parseFloat(String(capacity))) * 100);
+ let fillWidth =
70
+ Math.round((parseFloat(String(value)) / parseFloat(String(capacity))) * 100) || 0;
71
fillWidth = fillWidth > 100 ? 100 : fillWidth;
72
let valueText: number | string | undefined = value,
73
capacityText: number | string | undefined = capacity,
0 commit comments