Skip to content

Commit

Permalink
[Close to graduation] Fix semester enrollments in Excel export
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Oct 28, 2024
1 parent d83a362 commit 2dc74af
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions services/frontend/src/components/CloseToGraduation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,8 @@ const getColumns = (
if (!student.studyright.semesterEnrollments) {
return 'Not enrolled'
}
const enrollment = student.studyright.semesterEnrollments.find(
enrollment => enrollment.semestercode === semester
)
return getEnrollmentTypeTextForExcel(enrollment?.enrollmenttype, enrollment?.statutoryAbsence)
const enrollment = student.studyright.semesterEnrollments.find(enrollment => enrollment.semester === semester)
return getEnrollmentTypeTextForExcel(enrollment?.type, enrollment?.statutoryAbsence)
},
})),
},
Expand Down

0 comments on commit 2dc74af

Please sign in to comment.