diff --git a/frontend/.env.environment b/frontend/.env.environment
index 393ac2b8..9734f038 100644
--- a/frontend/.env.environment
+++ b/frontend/.env.environment
@@ -1 +1,2 @@
-NEXT_PUBLIC_STRAPI_URL=http://localhost:1337
\ No newline at end of file
+NEXT_PUBLIC_STRAPI_URL=http://localhost:1337
+
diff --git a/frontend/features/page/sections/ContactsSection/ContactsSection.tsx b/frontend/features/page/sections/ContactsSection/ContactsSection.tsx
index 98a32a62..a6aee223 100644
--- a/frontend/features/page/sections/ContactsSection/ContactsSection.tsx
+++ b/frontend/features/page/sections/ContactsSection/ContactsSection.tsx
@@ -242,7 +242,7 @@ enum FormActionType {
Success = "success",
Failed = "failed",
Submit = "submit",
- ValidationFailed = "validation - failed",
+ ValidationFailed = "validation-failed",
}
interface ValidationFailedAction {
@@ -384,6 +384,10 @@ export function ContactsForm() {
>(InsertFormMessage, { input });
if (response.createFormMessage) {
+ fetch(`api/send`, {
+ method: "POST",
+ body: JSON.stringify({ data: state.values }),
+ });
dispatch({ type: FormActionType.Success });
} else {
dispatch({ type: FormActionType.Failed });
@@ -643,7 +647,7 @@ export function ContactsForm() {
>
- {state.submitError}
+ {state.submitError}