From bc6bd05fee17ec3909dd8b8e5b90ecf422e66c3e Mon Sep 17 00:00:00 2001 From: junlu592 Date: Tue, 9 Dec 2025 15:01:31 +0100 Subject: [PATCH] ninja check fix, let -> const and removed empty line --- ts/routes/graphs/reviews.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ts/routes/graphs/reviews.ts b/ts/routes/graphs/reviews.ts index 94583b45f..e67675069 100644 --- a/ts/routes/graphs/reviews.ts +++ b/ts/routes/graphs/reviews.ts @@ -90,7 +90,7 @@ export function renderReviews( ): TableDatum[] { const svg = select(svgElem); const trans = svg.transition().duration(600) as any; - let xMax = 1; + const xMax = 1; let xMin = 0; // cap max to selected range switch (range) { @@ -124,7 +124,6 @@ export function renderReviews( thresholds = x.ticks(desiredBars); } } - // For Year, shift thresholds forward by one day to make first bin 0-4 instead of 0-5 if (range === GraphRange.Year) { thresholds = [...new Set(thresholds.map(t => Math.min(t + 1, 1)))].sort((a, b) => a - b);