diff --git a/src/pages/scheduler/components/SchedulerSections.tsx b/src/pages/scheduler/components/SchedulerSections.tsx index b9af2968..55b2035d 100644 --- a/src/pages/scheduler/components/SchedulerSections.tsx +++ b/src/pages/scheduler/components/SchedulerSections.tsx @@ -155,8 +155,8 @@ export const Option = forwardRef(function Option( ?.trim() ?.replace(/^(.{200}).+/, '$1…'); - const sectionFull = seats?.enrollment === seats?.maxEnrollment; - const waitlistFull = seats?.waitCount === seats?.waitCapacity; + const sectionFull = (seats?.enrollment ?? 0) >= (seats?.maxEnrollment ?? 0); + const waitlistFull = (seats?.waitCount ?? 0) >= (seats?.waitCapacity ?? 0); function Time({ time }: { time: string }) { const [start, end] = time.split('-');