Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/webapp/components/planner/semester-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down