currentStreak() was starting its backward walk from today, so if the user hadn't checked in yet today the first lookup missed and it returned 0 — even with a perfect streak on previous days. Now when today's entry is absent and the goal is still active, the count starts from yesterday instead. Once the goal window has closed the original end-of-window anchor is preserved. |
||
|---|---|---|
| .. | ||
| api.js | ||
| app.js | ||
| calendar.js | ||
| db.js | ||
| stats.js | ||
| theme.js | ||