Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed small % values in OneDrive usage report being shown as no data #1109

Merged

Conversation

knightian
Copy link
Contributor

Self explanatory, see #cipp-issues in Discord for discussion

@@ -24,7 +24,7 @@ export const CellProgressBar = ({ value, reverse = false }) => {
color = 'success'
}
}
if (value) {
if (value > 0) {
Copy link
Contributor Author

@knightian knightian Sep 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was needed because value can now be 2 decimal places.

So whilst 0 == false, 0.00 != false thus 0.00 was being treated as a value, although now I reflect on it in hindsight, 0% is a value right? (Not using any space == 0%) So shouldn't we be showing an empty percentage bar for 0% instead of "No data" 🤔

@KelvinTegelaar KelvinTegelaar merged commit 9bd7d1e into KelvinTegelaar:dev Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants