From 5e096ced99478892271a4d0e0c5844136ed6451e Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 11 Mar 2026 01:05:59 +0000 Subject: [PATCH 1/2] Changes Co-authored-by: Ichitux <17677572+Ichitux@users.noreply.github.com> --- src/components/BookingSection.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/BookingSection.tsx b/src/components/BookingSection.tsx index 075f5e8..22e05d0 100644 --- a/src/components/BookingSection.tsx +++ b/src/components/BookingSection.tsx @@ -56,15 +56,12 @@ 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); + 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}: ${text}`); setStatus("success"); } catch (err) { From a10a500e03540413e91418228d84d691da7f696e Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 11 Mar 2026 01:06:05 +0000 Subject: [PATCH 2/2] =?UTF-8?q?Mejor=C3=B3=20env=C3=ADo=20de=20reserva?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ichitux <17677572+Ichitux@users.noreply.github.com> --- src/components/BookingSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BookingSection.tsx b/src/components/BookingSection.tsx index 22e05d0..e4502f4 100644 --- a/src/components/BookingSection.tsx +++ b/src/components/BookingSection.tsx @@ -62,7 +62,7 @@ const BookingSection = () => { }); 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}: ${text}`); + if (!res.ok) throw new Error(`HTTP ${res.status}`); setStatus("success"); } catch (err) { console.error("[Booking] Error:", err);