From 991b8e77033ebef5150c978afbacc2b11d9b5f65 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Thu, 21 Mar 2024 20:47:22 +0530 Subject: [PATCH] chore: custom month select modal validation added (#4027) --- web/components/automation/select-month-modal.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/components/automation/select-month-modal.tsx b/web/components/automation/select-month-modal.tsx index e0768b1df..7b068fa41 100644 --- a/web/components/automation/select-month-modal.tsx +++ b/web/components/automation/select-month-modal.tsx @@ -98,6 +98,8 @@ export const SelectMonthModal: React.FC = ({ type, initialValues, isOpen, hasError={Boolean(errors.close_in)} placeholder="Enter Months" className="w-full border-custom-border-200" + min={1} + max={12} /> Months @@ -130,6 +132,8 @@ export const SelectMonthModal: React.FC = ({ type, initialValues, isOpen, hasError={Boolean(errors.archive_in)} placeholder="Enter Months" className="w-full border-custom-border-200" + min={1} + max={12} /> Months