diff --git a/src/components/forms/companies/companyFormSections.tsx b/src/components/forms/companies/companyFormSections.tsx index 8780bc3..df96c14 100644 --- a/src/components/forms/companies/companyFormSections.tsx +++ b/src/components/forms/companies/companyFormSections.tsx @@ -168,9 +168,7 @@ export const createCompanyFormSections = ({ label: "Industry", type: "text", placeholder: "e.g. construction, software, logistics", - required: true, rules: { - required: { message: FormErrorMessages.required, value: true }, minLength: { value: 2, message: FormErrorMessages.minLength(2) }, maxLength: { value: 100, message: FormErrorMessages.maxLength(100) }, }, @@ -181,9 +179,7 @@ export const createCompanyFormSections = ({ label: "Registration number", type: "text", placeholder: "Registry or license number", - required: true, rules: { - required: { message: FormErrorMessages.required, value: true }, minLength: { value: 5, message: FormErrorMessages.minLength(5) }, maxLength: { value: 50, message: FormErrorMessages.maxLength(50) }, }, @@ -194,9 +190,7 @@ export const createCompanyFormSections = ({ label: "Tax id", type: "text", placeholder: "National tax identification number", - required: true, rules: { - required: { message: FormErrorMessages.required, value: true }, minLength: { value: 5, message: FormErrorMessages.minLength(5) }, maxLength: { value: 50, message: FormErrorMessages.maxLength(50) }, },