diff --git a/packages/webapp/components/planner/semester-row.tsx b/packages/webapp/components/planner/semester-row.tsx index b8c7653..c5e2101 100644 --- a/packages/webapp/components/planner/semester-row.tsx +++ b/packages/webapp/components/planner/semester-row.tsx @@ -59,9 +59,9 @@ export function SemesterRow({ slot: PlannerSlot yearLabel: string }) { - const { dispatch, units } = usePlanner() + const { dispatch, units, offerings } = usePlanner() const capacity = slotCapacity(slot) - const usedWeight = slotUsedWeight(slot, units) + const usedWeight = slotUsedWeight(slot, units, offerings) const canDecrease = capacity > Math.max(1, usedWeight) const canIncrease = capacity < MAX_SLOT_CAPACITY const hasUnits = slot.unitCodes.length > 0