diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 9e3fbbe40d..f9d038b1e3 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -56,7 +56,8 @@ function bytesToMB(bytes?: number | string) { } export function bytesToSpeed(bytes?: number | string) { - return `${bytesToMB(bytes)}${bytes ? 'ps' : ''}`; + const speed = bytesToMB(bytes); + return `${speed}${speed ? 'ps' : ''}`; } export function bytesToGB(bytes?: number | string, shouldRound?: boolean) {