@timardex/cluemart-shared 1.2.88 → 1.2.90
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 +4 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +4 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/hooks/index.cjs
CHANGED
|
@@ -746,7 +746,7 @@ var testerSchema = yup6.object().shape({
|
|
|
746
746
|
event: yup6.object().when("resourceType", {
|
|
747
747
|
is: (resourceType) => resourceType === "event" /* EVENT */,
|
|
748
748
|
otherwise: (schema) => schema.nullable().optional(),
|
|
749
|
-
then: () => testerEventSchema
|
|
749
|
+
then: (schema) => schema.required("Event information is required").shape(testerEventSchema.fields)
|
|
750
750
|
}),
|
|
751
751
|
firstName: yup6.string().required("First name is required"),
|
|
752
752
|
lastName: yup6.string().required("Last name is required"),
|
|
@@ -766,7 +766,7 @@ var testerSchema = yup6.object().shape({
|
|
|
766
766
|
vendor: yup6.object().when("resourceType", {
|
|
767
767
|
is: (resourceType) => resourceType === "vendor" /* VENDOR */,
|
|
768
768
|
otherwise: (schema) => schema.nullable().optional(),
|
|
769
|
-
then: () => testerVendorSchema
|
|
769
|
+
then: (schema) => schema.required("Vendor information is required").shape(testerVendorSchema.fields)
|
|
770
770
|
})
|
|
771
771
|
});
|
|
772
772
|
|
|
@@ -1563,7 +1563,7 @@ var import_react_hook_form11 = require("react-hook-form");
|
|
|
1563
1563
|
var defaultValues7 = {
|
|
1564
1564
|
businessName: "",
|
|
1565
1565
|
email: "",
|
|
1566
|
-
event:
|
|
1566
|
+
event: {},
|
|
1567
1567
|
firstName: "",
|
|
1568
1568
|
lastName: "",
|
|
1569
1569
|
mobilePhone: "",
|
|
@@ -1571,7 +1571,7 @@ var defaultValues7 = {
|
|
|
1571
1571
|
privacyConsent: false,
|
|
1572
1572
|
region: "",
|
|
1573
1573
|
resourceType: "",
|
|
1574
|
-
vendor:
|
|
1574
|
+
vendor: {}
|
|
1575
1575
|
};
|
|
1576
1576
|
function useTesterForm(data) {
|
|
1577
1577
|
const {
|