Client - fix week end color on calendar

This commit is contained in:
Sam 2021-09-05 23:06:54 +02:00
parent 43b5c4009e
commit 07f192c12e

View File

@ -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[]) {