Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Resting Heart Rate for Day History is undefined

My clock face on my Ionic is no longer displaying the Resting Heart Rate.

 

code is:

const dayRecords = dayHistory.query({ limit: 1 });
dayRecords[0].restingHeartRate is undefined
 
On the Simulator its showing 50 all the time.
 
This was working fine a month ago.
Any Ideas?

 

Best Answer
0 Votes
3 REPLIES 3

Is `dayRecords[0]` undefined? or just the restingHeartRate? Does dayRecords[0].steps return anything?

Best Answer
0 Votes

Hi Jon,

dayRecords[0] is not null

dayRecords[0].steps is valid along with calories, elevation, ...

 

Best Answer
0 Votes

after several weeks of not displaying the resting HR it is now working with no changes...I suspect it has something to do with syncing?

Best Answer
0 Votes