From 5f14dc720be1583f33d9da23bbc59167b0635d8c Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Thu, 15 May 2025 20:44:54 -0400 Subject: [PATCH] fix: build error --- src/gui/src/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/src/helpers.js b/src/gui/src/helpers.js index b10ec769c..cacb4e9d6 100644 --- a/src/gui/src/helpers.js +++ b/src/gui/src/helpers.js @@ -2733,8 +2733,8 @@ window.get_profile_picture = async function(username){ window.format_with_units = (num, { mulUnits, divUnits, precision = 3 }) => { if ( num === 0 ) return "0"; - const mulUnits = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"]; - const divUnits = ["m", "µ", "n", "p", "f", "a", "z", "y"]; + mulUnits = mulUnits ?? ["", "K", "M", "G", "T", "P", "E", "Z", "Y"]; + divUnits = divUnits ?? ["m", "µ", "n", "p", "f", "a", "z", "y"]; const abs = Math.abs(num); let exp = Math.floor(Math.log10(abs) / 3);