@timardex/cluemart-shared 1.5.518 → 1.5.519

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5590,7 +5590,7 @@ var schoolSchema = yup11.object().shape({
5590
5590
  name: yup11.string().trim().required("Name is required"),
5591
5591
  region: yup11.string().trim().required("Region is required"),
5592
5592
  socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
5593
- studentCount: yup11.number().label("Student Count").min(0, "Student count cannot be negative").required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
5593
+ studentCount: yup11.number().label("Student Count").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Student count must be a number").min(350, "Student count must be at least 350").required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
5594
5594
  });
5595
5595
 
5596
5596
  // src/hooks/useSchoolForm.ts