Skip to content

Commit

Permalink
fix(settings): round storage number to 2 decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane committed Nov 9, 2023
1 parent 589e1a0 commit 23baa16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useStorage = (): Storage | null => {
quota,
formatedQuota: prettyBytes(quota),
formatedUsage: prettyBytes(usage),
percentageUsed: (usage / quota) * 100,
percentageUsed: Number(((usage / quota) * 100).toFixed(2)),
remaining: quota - usage,
});
}
Expand Down

0 comments on commit 23baa16

Please sign in to comment.