Skip to content

Commit

Permalink
Remove duplicate age (#9928)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev authored Jan 14, 2025
1 parent 7c361a1 commit bc152cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Appointments/AppointmentDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,16 @@ const AppointmentDetails = ({
<div>
<p className="font-medium">{appointment.patient.name}</p>
<p className="text-gray-600">
{appointment.patient.date_of_birth && (
{appointment.patient.date_of_birth ? (
<>
{format(appointment.patient.date_of_birth, "MMMM d, yyyy")}{" "}
|{" "}
{differenceInYears(
new Date(),
appointment.patient.date_of_birth!,
)}
</>
)}
{appointment.patient.year_of_birth && (
) : (
<>
{differenceInYears(
new Date(),
Expand Down

0 comments on commit bc152cc

Please sign in to comment.