Skip to content

Commit

Permalink
πŸ›Œ Fix issues with missing sleep data
Browse files Browse the repository at this point in the history
  • Loading branch information
shivekkhurana committed Feb 5, 2024
1 parent 4968682 commit 7e42a58
Show file tree
Hide file tree
Showing 29 changed files with 319 additions and 163 deletions.
Binary file added public/optimized-img/spotlightIcons/mbk.png/og.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/Spotlight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const txfmStatsFactory = ({
'A combination of factors like timing, temperature, heart rate etc. Score out of 100.',
itemType: 'count',
countProps: {
value: sleepAggregates.latest.sleepIndex.toFixed(0),
value: sleepAggregates?.latest?.sleepIndex?.toFixed(0) || 0,
},
},
{
Expand Down
Loading

0 comments on commit 7e42a58

Please sign in to comment.