From 07f192c12e890bcf1716a838d84ad9e52c75dae4 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 5 Sep 2021 23:06:54 +0200 Subject: [PATCH] Client - fix week end color on calendar --- .../src/components/Dashboard/UserCalendar/CalendarCells.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fittrackee_client/src/components/Dashboard/UserCalendar/CalendarCells.vue b/fittrackee_client/src/components/Dashboard/UserCalendar/CalendarCells.vue index 964e184f..d8fd5b12 100644 --- a/fittrackee_client/src/components/Dashboard/UserCalendar/CalendarCells.vue +++ b/fittrackee_client/src/components/Dashboard/UserCalendar/CalendarCells.vue @@ -81,7 +81,9 @@ } function isWeekEnd(day: number): boolean { - return weekStartingMonday ? [0, 6].includes(day) : [5, 6].includes(day) + return weekStartingMonday.value + ? [5, 6].includes(day) + : [0, 6].includes(day) } function filterWorkouts(day: Date, workouts: IWorkout[]) {