@stoker-platform/web-app 0.5.153 → 0.5.155

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,17 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.155
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: correctly detect server writes
8
+
9
+ ## 0.5.154
10
+
11
+ ### Patch Changes
12
+
13
+ - fix: round list metric value
14
+
3
15
  ## 0.5.153
4
16
 
5
17
  ### 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.155",
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}`
@@ -12,13 +12,14 @@ export const isServerUpdate = (collection: CollectionSchema, record: Partial<Sto
12
12
  const tokenFields = fields.filter((field) => field.saveToAuthToken)
13
13
  return !!(
14
14
  serverWriteOnly ||
15
- (auth && user?.operation) ||
16
- record.Role ||
17
- record.Enabled !== undefined ||
18
- record.Name ||
19
- record.Email ||
20
- record.Photo_URL ||
21
- tokenFields.some((field) => record[field.name] !== undefined)
15
+ (auth &&
16
+ (user?.operation ||
17
+ record.Role ||
18
+ record.Enabled !== undefined ||
19
+ record.Name ||
20
+ record.Email ||
21
+ record.Photo_URL ||
22
+ tokenFields.some((field) => record[field.name] !== undefined)))
22
23
  )
23
24
  }
24
25