Skip to content

Commit 8ad9382

Browse files
committed
chore: fix build
1 parent 33f4d71 commit 8ad9382

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/shared/contact-form/contact-form.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type ValueType = {
2727
lastname: string;
2828
email: string;
2929
company: string;
30-
message: string;
30+
message?: string;
3131
};
3232

3333
const validationSchema = yup.object().shape({
@@ -39,6 +39,7 @@ const validationSchema = yup.object().shape({
3939
.email('Please provide a valid email')
4040
.required('Work email is a required field'),
4141
company: yup.string().trim().required('Company name is a required field'),
42+
message: yup.string().trim().optional(),
4243
});
4344

4445
const getButtonTitle = (formId: string) => {

0 commit comments

Comments
 (0)