Flux
Flux copied to clipboard
Weight does not sync with ICU
Looking at the browser console I see this error (comments are mine):
(index):1710 GET https://static.cloudflareinsights.com/beacon.min.js net::ERR_BLOCKED_BY_CLIENT
functions.js:664 :env development :print development
db.js:453 start db
views.js:18 start views.
index.js:28 start app.
idb.js:37 :idb :open :db 'store' :store-name 'session,workouts,activity' ...
idb.js:59 :idb :version 3
idb.js:116 :idb :getAll :store 'workouts' :success
idb.js:116 :idb :getAll :store 'activity' :success
watch.js:69 :workout :type workout
models.js:858 :planned :restore
models.js:869 :planned :up-to-date
idb.js:116 :idb :getAll :store 'session' :success
models.js:918 :idb :restore 'session' :length 1
idb.js:116 :idb :clear :store 'session' :success
auth.js:283 :api :profile
auth.js:290 :status {intervals: true, services: {…}, strava: true, trainingPeaks: false}
auth-forms.js:91 :password:profile
intervals.js:150 []
intervals.js:260 {weight: null, icu_weight: 61.32, sportSettings: Array(4)}
models.js:897 {weight: 61.32, ftp: 190} // correct values
// here the error:
models.js:54 Trying to set invalid weight. number 61.32
//
defaultOnInvalid @ models.js:54
defaultSet @ models.js:45
(anonymous) @ db.js:288
handlerWraper @ functions.js:473
dispatch @ functions.js:450
getAthlete @ models.js:899
await in getAthlete
onAction @ planned-list.js:52
handlerWraper @ functions.js:459
dispatch @ functions.js:450
(anonymous) @ data-views.js:1383
idb.js:154 :idb :setId 0
lock.js:52 Wake lock released.
idb.js:116 :idb :put :store 'session' :success
idb.js:154 :idb :setId 0
lock.js:52 Wake lock released.
idb.js:116 :idb :put :store 'session' :success
The weight contains decimal, maybe it should be rounded to the nearest integer value if the decimal can't be displayed properly.