@stoker-platform/web-app 0.5.153 → 0.5.154

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.154
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: round list metric value
8
+
3
9
  ## 0.5.153
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.153",
3
+ "version": "0.5.154",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {
package/src/List.tsx CHANGED
@@ -1277,7 +1277,7 @@ export function List({
1277
1277
  if (metric.decimal) {
1278
1278
  value = total.toFixed(metric.decimal)
1279
1279
  } else {
1280
- value = total.toString()
1280
+ value = Number(total.toFixed(2)).toString()
1281
1281
  }
1282
1282
  if (metric.prefix) {
1283
1283
  value = `${metric.prefix}${value}`