mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-25 18:13:10 +03:00
feat(strings): remove empty space from bytesToSize function
This commit is contained in:
parent
d8ffba9251
commit
80a503d416
@ -182,7 +182,7 @@ export const bytesToSize = (bytes, decimals = 2) => {
|
||||
|
||||
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
||||
|
||||
return `${(bytes / Math.pow(k, i)).toFixed(dm)} ${sizes[i]}`;
|
||||
return `${(bytes / Math.pow(k, i)).toFixed(dm)}${sizes[i]}`;
|
||||
};
|
||||
|
||||
export const getRemainingTime = (seconds) => {
|
||||
|
Loading…
Reference in New Issue
Block a user