From b44f4237d2bdae457e525c3e2963425eaf76d400 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 13 May 2023 03:24:50 +0300 Subject: [PATCH] Use string interpolation in formatBytes (cherry picked from commit 3508cb63dc0b2fbe0eddb00c8396a22705030f6f) Closes #2495 --- frontend/src/Utilities/Number/formatBytes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Utilities/Number/formatBytes.js b/frontend/src/Utilities/Number/formatBytes.js index 912eabde3..273452031 100644 --- a/frontend/src/Utilities/Number/formatBytes.js +++ b/frontend/src/Utilities/Number/formatBytes.js @@ -7,11 +7,11 @@ function formatBytes(input, showBits = false) { return ''; } - return filesize(size, { + return `${filesize(size, { base: 2, round: 1, bits: showBits - }); + })}`; } export default formatBytes;