fix(schedule-week): fix allTimeSlots
This commit is contained in:
parent
3be331f043
commit
2428e5ec72
@ -122,7 +122,7 @@ weekSchedule uid dayOffset = do
|
||||
timeSlotsDefaultDisplay = Set.fromList $ timeSlot <$> [8,10..18]
|
||||
|
||||
allTimeSlots :: [TimeSlot]
|
||||
allTimeSlots = timeSlot <$> [0,2..24]
|
||||
allTimeSlots = timeSlot <$> [0,2..22]
|
||||
|
||||
timeSlotIsEmpty :: TimeSlot -> Bool
|
||||
timeSlotIsEmpty slot = foldr (\day acc -> acc && maybe True null (day Map.!? slot)) True events
|
||||
|
||||
Reference in New Issue
Block a user