Ver Fonte

fix: resolve syntax error in api.ts to fix build

unknown há 2 dias atrás
pai
commit
1fbbfa349c
1 ficheiros alterados com 0 adições e 10 exclusões
  1. 0 10
      src/lib/api.ts

+ 0 - 10
src/lib/api.ts

@@ -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();
 };