Procházet zdrojové kódy

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

unknown před 3 dny
rodič
revize
1fbbfa349c
1 změnil soubory, kde provedl 0 přidání a 10 odebrání
  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();
 };