mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 01:10:42 +08:00
Fix #625 - Fix error on decimals
This commit is contained in:
parent
2eeececca3
commit
c4a374ce4b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue