diff --git a/src/pages/Appointments/AppointmentDetail.tsx b/src/pages/Appointments/AppointmentDetail.tsx index 33cf4337af0..93ba489a65d 100644 --- a/src/pages/Appointments/AppointmentDetail.tsx +++ b/src/pages/Appointments/AppointmentDetail.tsx @@ -298,7 +298,7 @@ const AppointmentDetails = ({ appointment.patient.date_of_birth!, )} - ) : appointment.patient.year_of_birth ? ( + ) : ( <> {differenceInYears( new Date(), @@ -307,7 +307,7 @@ const AppointmentDetails = ({ ), )} - ) : null}{" "} + )}{" "} {t("years")}