Bugfix: missing space between number and 'Bytes'

This commit is contained in:
djmaze 2021-03-25 16:51:54 +01:00
parent 59c1392b2c
commit fd5940f5fc

View file

@ -297,7 +297,7 @@ export const FileInfo = {
friendlySize: bytes => {
bytes = parseInt(bytes, 10) || 0;
let i = Math.floor(Math.log(bytes) / Math.log(1024));
return (bytes / Math.pow(1024, i)).toFixed(2>i ? 0 : 1) + sizes[i];
return (bytes / Math.pow(1024, i)).toFixed(2>i ? 0 : 1) + ' ' + sizes[i];
}
};