diff --git a/public/js/app/pages/Curriculum.jsx b/public/js/app/pages/Curriculum.jsx index ddfc8316..672a0656 100644 --- a/public/js/app/pages/Curriculum.jsx +++ b/public/js/app/pages/Curriculum.jsx @@ -145,30 +145,34 @@ function Courses({ curriculumInfo }) { {ELECTIVE_CONDITIONS.map(electiveCondition => { const participations = allParticipations[electiveCondition] || [] return ( - participations.length !== 0 && ( - - {/* Information about conditionally elective courses for this study year, only if there are such courses to display */} - {electiveCondition === 'VV' && ( -
- -
- )} - {code ? ( -

- {`${t('elective_condition')[electiveCondition]} ${t('courses').toLowerCase()}`} -

- ) : ( -

- {`${t('elective_condition')[electiveCondition]} ${t('courses').toLowerCase()}`} -

- )} - -
- ) + + {/* Always show this section if electiveCondition === 'VV' */} + {electiveCondition === 'VV' && ( +
+ +
+ )} + + {/* Only render this part if there are participations */} + {participations.length !== 0 && ( + <> + {code ? ( +

+ {`${t('elective_condition')[electiveCondition]} ${t('courses').toLowerCase()}`} +

+ ) : ( +

+ {`${t('elective_condition')[electiveCondition]} ${t('courses').toLowerCase()}`} +

+ )} + + + )} +
) })}