mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Update ts/routes/graphs/reviews.ts
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
This commit is contained in:
parent
d737f5da72
commit
7a883600ab
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ export function renderReviews(
|
|||
}
|
||||
}
|
||||
// For Year, shift thresholds forward by one day to make first bin 0-4 instead of 0-5
|
||||
if (range === GraphRange.Year) {
|
||||
if (range === GraphRange.Year || range === GraphRange.AllTime) {
|
||||
thresholds = [...new Set(thresholds.map(t => Math.min(t + 1, 1)))].sort((a, b) => a - b);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue