Skip to content

Commit

Permalink
Merge pull request #1109 from White-Knight-IT/fix_usage_values
Browse files Browse the repository at this point in the history
fixed small % values in OneDrive usage report being shown as no data
  • Loading branch information
KelvinTegelaar authored Sep 6, 2022
2 parents f90347f + 02670da commit 9bd7d1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/tables/CellProgressBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const CellProgressBar = ({ value, reverse = false }) => {
color = 'success'
}
}
if (value) {
if (value > 0) {
return (
<div style={{ width: '100%' }}>
<CProgress>
Expand Down
2 changes: 1 addition & 1 deletion src/views/identity/administration/UserOneDriveUsage.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function UserOneDriveUsage({ userUPN, tenantDomain, className = n
{
heading: 'Percent',
body: CellProgressBar({
value: Math.round((usage[0]?.UsedGB / usage[0]?.Allocated) * 100),
value: ((usage[0]?.UsedGB / usage[0]?.Allocated) * 100).toFixed(2),
reverse: true,
}),
},
Expand Down

0 comments on commit 9bd7d1e

Please sign in to comment.