Skip to content

Commit

Permalink
fix conditional rendering logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev committed Jan 14, 2025
1 parent cad9cd0 commit e6dcd50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Appointments/AppointmentDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ const AppointmentDetails = ({
appointment.patient.date_of_birth!,
)}
</>
) : appointment.patient.year_of_birth ? (
) : (
<>
{differenceInYears(
new Date(),
Expand All @@ -307,7 +307,7 @@ const AppointmentDetails = ({
),
)}
</>
) : null}{" "}
)}{" "}
{t("years")}
</p>
</div>
Expand Down

0 comments on commit e6dcd50

Please sign in to comment.