Skip to content

Commit f80027e

Browse files
fix(web): prevent app crash when decimal input is <1 & fixed integer overflow
1 parent 6ac5035 commit f80027e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/utils/commify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function commify(value: string | number): string {
88
value === "." ||
99
value === "-."
1010
) {
11-
return value.toString();
11+
return "0";
1212
}
1313

1414
// Make sure we have at least one whole digit (0 if none)

0 commit comments

Comments
 (0)