diff --git a/src/components/BookingSection.tsx b/src/components/BookingSection.tsx index 075f5e8..e4502f4 100644 --- a/src/components/BookingSection.tsx +++ b/src/components/BookingSection.tsx @@ -56,16 +56,13 @@ const BookingSection = () => { setStatus("loading"); try { console.log("[Booking] Sending to:", WEBHOOK_URL); - console.log("[Booking] Payload:", JSON.stringify(result.data)); const res = await fetch(WEBHOOK_URL, { method: "POST", - headers: { "Content-Type": "application/json" }, body: JSON.stringify(result.data), }); - console.log("[Booking] Response status:", res.status, res.statusText); - const text = await res.text(); - console.log("[Booking] Response body:", text); - if (!res.ok) throw new Error(`HTTP ${res.status}: ${text}`); + console.log("[Booking] Response status:", res.status); + if (!res.ok) throw new Error(`HTTP ${res.status}`); + if (!res.ok) throw new Error(`HTTP ${res.status}`); setStatus("success"); } catch (err) { console.error("[Booking] Error:", err);