@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.
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/hooks/index.cjs
CHANGED
|
@@ -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(
|
|
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
|