From 49d44f25cfad1d958902bbb3967e62502023b061 Mon Sep 17 00:00:00 2001 From: SteveGT96 Date: Fri, 10 Nov 2023 10:14:39 +0100 Subject: [PATCH] update(OH2-250): Update age field validation --- 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 = ({ 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"