Skip to content

Commit

Permalink
fix: manage undefined in readableBytes, fixes zouhir#64 (zouhir#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
phra authored and zouhir committed Jan 16, 2018
1 parent ac91492 commit 8ab4b9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/helpers/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const readableBytes = (bytes, decimals = 2) => {
if (bytes === void 0) return "Bundling...";
if (bytes == 0) return "0 Bytes";
let k = 1000,
dm = decimals || 2,
Expand Down

0 comments on commit 8ab4b9c

Please sign in to comment.