Fix #625 - Fix error on decimals

This commit is contained in:
Jack Anderson 2025-03-13 09:28:28 +00:00 committed by Jack Anderson
parent 2eeececca3
commit c4a374ce4b

View file

@ -159,7 +159,7 @@ export class NumberFormatter implements Formatter {
const formattedValue = this.toInternalFormat(value);
if (decimalSymbol !== '.' && value.includes(decimalSymbol)) {
if (decimalSymbol !== '.' && value?.toString()?.includes(decimalSymbol)) {
value = formattedValue;
}