|
|
@@ -121,16 +121,6 @@ export const submitContactForm = async (formData: FormData) => {
|
|
|
throw new Error(await getErrorMessage(response, 'Failed to send message'));
|
|
|
}
|
|
|
|
|
|
- return response.json();
|
|
|
-};
|
|
|
- headers: {
|
|
|
- 'Content-Type': 'application/json'
|
|
|
- },
|
|
|
- body: JSON.stringify(userData),
|
|
|
- });
|
|
|
- if (!response.ok) {
|
|
|
- throw new Error(await getErrorMessage(response, 'Failed to register'));
|
|
|
- }
|
|
|
return response.json();
|
|
|
};
|
|
|
|