Browse Source

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

unknown 2 days ago
parent
commit
1fbbfa349c
1 changed files with 0 additions and 10 deletions
  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();
 };