ywana-core8 0.0.761 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.761",
3
+ "version": "0.0.762",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/table.js CHANGED
@@ -260,7 +260,9 @@ const NumberCellViewer = ({ id, value, format, maxDecimals }) => {
260
260
  }
261
261
  } else {
262
262
  const decimals = maxDecimals ? maxDecimals : 2
263
- // check value is a number
263
+ if (typeof value === "string") {
264
+ value = parseFloat(value)
265
+ }
264
266
  return (value && !isNaN(value)) ? <span>{value.toFixed(decimals)}</span> : ""
265
267
  }
266
268
  }