fix(utils): handle null and undefined values in number formatting to ensure consistent output
This commit is contained in:
@@ -26,6 +26,9 @@ class Utils {
|
||||
if (num === 0) {
|
||||
return "0";
|
||||
}
|
||||
if (num === null || num === undefined) {
|
||||
return "0";
|
||||
}
|
||||
return num.toLocaleString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user