Skip to content

Commit

Permalink
fix(exams): fix icon not bookable and places not available, Refs #495
Browse files Browse the repository at this point in the history
  • Loading branch information
FabrizioCostaMedich committed Jun 17, 2024
1 parent ac9024d commit ea849d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/features/teaching/screens/ExamScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ export const ExamScreen = ({ route, navigation }: Props) => {
}
subtitle={t('examScreen.bookingEndsAt')}
trailingItem={
exam?.bookingEndsAt && isExamPassed(exam.bookingEndsAt) ? (
exam?.status === ExamStatusEnum.Unavailable &&
exam?.bookingEndsAt &&
isExamPassed(exam.bookingEndsAt) ? (
<Icon
icon={faTriangleExclamation}
color="red"
Expand All @@ -217,7 +219,9 @@ export const ExamScreen = ({ route, navigation }: Props) => {
}
subtitle={t('examScreen.bookedCount')}
trailingItem={
exam?.availableCount && exam.availableCount === 0 ? (
exam?.status === ExamStatusEnum.Unavailable &&
exam?.availableCount &&
exam.availableCount === 0 ? (
<Icon
icon={faTriangleExclamation}
color="red"
Expand Down

0 comments on commit ea849d6

Please sign in to comment.