diff --git a/src/Components/Patient/PatientRegister.tsx b/src/Components/Patient/PatientRegister.tsx index 7ec0dc10753..dea0484a67c 100644 --- a/src/Components/Patient/PatientRegister.tsx +++ b/src/Components/Patient/PatientRegister.tsx @@ -1383,16 +1383,21 @@ export const PatientRegister = (props: PatientRegisterProps) => { {...field("age")} errorClassName="hidden" trailing={ -

-

- {field("age").value !== "" && - "Year of Birth:"} -

- - {field("age").value !== "" && - new Date().getFullYear() - - field("age").value} - +

+ {field("age").value !== "" && ( + <> + + Year of Birth: + + + YOB: + + + {new Date().getFullYear() - + field("age").value} + + + )}

} placeholder="Enter the age"