ywana-core8 0.0.760 → 0.0.762

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.
package/dist/index.umd.js CHANGED
@@ -2185,7 +2185,12 @@
2185
2185
  }
2186
2186
  } else {
2187
2187
  var decimals = maxDecimals ? maxDecimals : 2;
2188
- return value ? /*#__PURE__*/React__default["default"].createElement("span", null, value.toFixed(decimals)) : "";
2188
+
2189
+ if (typeof value === "string") {
2190
+ value = parseFloat(value);
2191
+ }
2192
+
2193
+ return value && !isNaN(value) ? /*#__PURE__*/React__default["default"].createElement("span", null, value.toFixed(decimals)) : "";
2189
2194
  }
2190
2195
  };
2191
2196
  /**