Skip to content

Commit

Permalink
(fix) O3-2735: Display units for patient age in header (#1638)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijaykv5 authored Feb 9, 2024
1 parent c28cf51 commit 28c70a1
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ const PatientInfo: React.FC<PatientInfoProps> = ({ patient }) => {
label={
<>
<p className={styles.tooltipPatientName}>{name}</p>
<p className={styles.tooltipPatientInfo}>{`${parseInt(age(patient?.birthDate))}, ${getGender(
patient?.gender,
)}`}</p>
<p className={styles.tooltipPatientInfo}>{`${age(patient?.birthDate)}, ${getGender(patient?.gender)}`}</p>
</>
}
>
Expand All @@ -98,9 +96,7 @@ const PatientInfo: React.FC<PatientInfoProps> = ({ patient }) => {
) : (
<span className={styles.patientName}>{name} </span>
)}
<span className={styles.patientInfo}>
{parseInt(age(patient.birthDate))}, {getGender(patient.gender)}
</span>
<span className={styles.patientInfo}>{`${age(patient?.birthDate)}, ${getGender(patient?.gender)}`}</span>
{queueEntry && (
<>
<div className={styles.navDivider} />
Expand Down

0 comments on commit 28c70a1

Please sign in to comment.