瀏覽代碼

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

unknown 2 天之前
父節點
當前提交
1fbbfa349c
共有 1 個文件被更改,包括 0 次插入10 次删除
  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();
 };