From 90345a6ae3e26e685ada12355fe3fe1c50bb44b0 Mon Sep 17 00:00:00 2001 From: Drew Edwards Date: Mon, 20 May 2024 03:03:27 +0100 Subject: [PATCH] fix: timezone-sensitive filtering of heatmap Closes #21 --- src/pages/dashboard/heatmap/data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/dashboard/heatmap/data.ts b/src/pages/dashboard/heatmap/data.ts index bcc5029..3378952 100644 --- a/src/pages/dashboard/heatmap/data.ts +++ b/src/pages/dashboard/heatmap/data.ts @@ -154,5 +154,5 @@ export async function generateHeatmapData( }); yearsArray.reverse(); // Sort by year descending - return yearsArray.filter(y => y.year !== 1970); // lol + return yearsArray.filter(y => y.year > 1970); // lol }