mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-26 10:34:09 +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));
|
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) => {
|
export const getRemainingTime = (seconds) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user