SUPPORT-8996: 1) Added default value '0' for incorrect or empty 'value' in format()
This commit is contained in:
parent
3be5b687d2
commit
be04dd6971
1 changed files with 1 additions and 2 deletions
|
|
@ -3,7 +3,6 @@ import {FormatterUtils} from "./FormatterUtils";
|
|||
|
||||
export class NumberToLocalStringFormatter implements TextFormatter {
|
||||
format(value: string): string {
|
||||
var result = FormatterUtils.toLocalString(value);
|
||||
return result ? result : '0';
|
||||
return value ? FormatterUtils.toLocalString(value) : '0';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue