Skip to content

Commit

Permalink
Merge pull request #1744 from benphelps/fix/resources-0-percent
Browse files Browse the repository at this point in the history
Fix: usage bar 0% displays '0'
  • Loading branch information
shamoon committed Jul 31, 2023
2 parents 5221ed0 + 45ee37c commit 489cfb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/widgets/widget/resource.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function Resource({ children, icon, value, label, expandedValue =
<div className="pr-1">{expandedLabel}</div>
</div>
}
{ percentage && <UsageBar percent={percentage} /> }
{ percentage >= 0 && <UsageBar percent={percentage} /> }
{ children }
</div>
</div>;
Expand Down

0 comments on commit 489cfb5

Please sign in to comment.