Client - fix week end color on calendar
This commit is contained in:
parent
43b5c4009e
commit
07f192c12e
@ -81,7 +81,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isWeekEnd(day: number): boolean {
|
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[]) {
|
function filterWorkouts(day: Date, workouts: IWorkout[]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user