easy3wui 1.5.39 → 1.5.40-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -490,7 +490,19 @@ var _initialiseProps = function _initialiseProps() {
490
490
  };
491
491
 
492
492
  this.numeralFormat = function (text) {
493
- return (0, _numeral2['default'])(text).format('0,0.00');
493
+ var strText = text;
494
+ if (text || text === 0 || isNaN(text)) {
495
+ if (typeof text === 'string') {
496
+ strText = text;
497
+ } else if (typeof text === 'number') {
498
+ if (Number.isInfinite(text) || isNaN(NaN)) {
499
+ strText = text;
500
+ } else {
501
+ strText = (0, _numeral2['default'])(text).format('0,0.00');
502
+ }
503
+ }
504
+ }
505
+ return strText;
494
506
  };
495
507
 
496
508
  this.rowSelected = function (record) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.39",
3
+ "version": "1.5.40-beta1",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",