From cc4a7d74f8d05fe6d13f29ee924b9d6de0e6bdce Mon Sep 17 00:00:00 2001 From: Steve Tsala <45661418+SteveGT96@users.noreply.github.com> Date: Fri, 10 Nov 2023 14:54:38 +0100 Subject: [PATCH] update(OH2-250): Update age field validation (#531) --- src/components/accessories/patientDataForm/PatientDataForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/accessories/patientDataForm/PatientDataForm.tsx b/src/components/accessories/patientDataForm/PatientDataForm.tsx index 3d4725b91..4fb01043c 100644 --- a/src/components/accessories/patientDataForm/PatientDataForm.tsx +++ b/src/components/accessories/patientDataForm/PatientDataForm.tsx @@ -58,7 +58,7 @@ const PatientDataForm: FunctionComponent<TProps> = ({ secondName: string().required(t("common.required")), age: ageType === "age" - ? number().required(t("common.required")).min(0) + ? number().required(t("common.required")).min(0).max(200) : string(), agetype: ageType === "agetype"