Skip to content

v1.0.0-rc.2 — Sleep Debt fix

Pre-release
Pre-release

Choose a tag to compare

@thebigjoe1 thebigjoe1 released this 27 Apr 11:38
· 86 commits to main since this release

Fixed

  • Sleep Debt card on Wellness page hardcoded 8h when the user's sleep goal was stored under .max (the default — "Minimum goal" toggle off in the goal editor). Code only checked .min, fell back to 480 minutes. Fix: use the same max ?? min ?? default fallback chain used elsewhere in the codebase (Goals.svelte, calorie targets, etc.). Users with custom sleep goals now see debt computed against their actual target.