From 8c2e0968d4a5757c361f0d466099aec019d8c47a Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Sat, 17 May 2025 12:33:54 +0200 Subject: [PATCH] Fix heatmap not appearing when first day of the week is a Sunday --- app/assets/javascripts/heatmap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/heatmap.js b/app/assets/javascripts/heatmap.js index 11a74597f..9fc4d8b99 100644 --- a/app/assets/javascripts/heatmap.js +++ b/app/assets/javascripts/heatmap.js @@ -20,7 +20,7 @@ $(function () { for (const day of heatmap.find("[data-date]")) { const $day = $(day); const date = new Date($day.data("date")); - if (date.getUTCDay() === weekInfo.firstDay) { + if (date.getUTCDay() === weekInfo.firstDay % 7) { weekColumn++; const currentMonth = getMonthOfThisWeek(date); if (previousMonth === null) { -- 2.39.5