Skip to content

Commit

Permalink
fix(offering): render degree hours if at least one of them is available
Browse files Browse the repository at this point in the history
Ref #461
  • Loading branch information
lpezzolla committed Apr 9, 2024
1 parent 9c240f4 commit b67e7e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/features/offering/screens/DegreeCourseScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ export const DegreeCourseScreen = ({ route }: Props) => {
</Row>
</Card>
{offeringCourse?.hours &&
offeringCourse.hours?.lecture &&
offeringCourse.hours?.classroomExercise &&
offeringCourse.hours?.labExercise &&
offeringCourse.hours?.tutoring && (
(offeringCourse.hours?.lecture ||
offeringCourse.hours?.classroomExercise ||
offeringCourse.hours?.labExercise ||
offeringCourse.hours?.tutoring) && (
<OverviewList>
{!!offeringCourse?.hours?.lecture && (
<ListItem
Expand Down

0 comments on commit b67e7e9

Please sign in to comment.