mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-04-26 23:55:46 +00:00
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