fix(utils): handle null and undefined values in number formatting to ensure consistent output

This commit is contained in:
2026-01-02 20:36:31 -06:00
parent c419fa48cf
commit 4ea47b9dcf

View File

@@ -26,6 +26,9 @@ class Utils {
if (num === 0) { if (num === 0) {
return "0"; return "0";
} }
if (num === null || num === undefined) {
return "0";
}
return num.toLocaleString(); return num.toLocaleString();
} }