Skip to content

Commit

Permalink
fix: show '0 B' instead of '-' for zero-length files
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Sep 2, 2022
1 parent 83ceac1 commit c3cf386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files/file/File.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const File = ({
styles.borderTop = '1px solid #eee'
}

size = size ? humanSize(size, { round: 0 }) : '-'
size = humanSize(size, { round: 0 })
const hash = cid.toString() || t('hashUnavailable')

const select = (select) => onSelect(name, select)
Expand Down

0 comments on commit c3cf386

Please sign in to comment.