We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33f4d71 commit 8ad9382Copy full SHA for 8ad9382
src/components/shared/contact-form/contact-form.tsx
@@ -27,7 +27,7 @@ type ValueType = {
27
lastname: string;
28
email: string;
29
company: string;
30
- message: string;
+ message?: string;
31
};
32
33
const validationSchema = yup.object().shape({
@@ -39,6 +39,7 @@ const validationSchema = yup.object().shape({
39
.email('Please provide a valid email')
40
.required('Work email is a required field'),
41
company: yup.string().trim().required('Company name is a required field'),
42
+ message: yup.string().trim().optional(),
43
});
44
45
const getButtonTitle = (formId: string) => {
0 commit comments