Skip to content

Commit f9479ef

Browse files
committed
fix: number to count
1 parent 9aa065c commit f9479ef

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/routes/plan/exams/+page.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,12 @@
254254
if (exam.constraints && exam.constraints.notPlannedByMe) {
255255
continue;
256256
}
257-
if (exam.primussExams.some((primussExam) => primussExam.exam.program === program)) {
257+
if (
258+
exam.primussExams.some(
259+
(primussExam) =>
260+
primussExam.exam.program === program && primussExam.studentRegs.length > 0
261+
)
262+
) {
258263
count++;
259264
}
260265
}

0 commit comments

Comments
 (0)