Update ts/routes/graphs/reviews.ts

Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
This commit is contained in:
Junia Mannervik 2025-12-11 21:48:02 +01:00 committed by GitHub
parent d737f5da72
commit 7a883600ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}