Fix: remove remaining TypeScript assertions from inline script
as HTMLInputElement and as HTMLElement leaked into compiled JS, causing SyntaxError in the lead capture handler block. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b9f27e939a
commit
397e006321
1 changed files with 3 additions and 3 deletions
|
|
@ -1073,7 +1073,7 @@ import Base from "../../layouts/Base.astro";
|
|||
document.addEventListener("click", (e) => {
|
||||
const btn = e.target.closest("#lead-submit-btn");
|
||||
if (!btn) return;
|
||||
const emailInput = document.getElementById("lead-email") as HTMLInputElement;
|
||||
const emailInput = document.getElementById("lead-email");
|
||||
const statusEl = document.getElementById("lead-status");
|
||||
if (!emailInput || !statusEl) return;
|
||||
const email = emailInput.value.trim();
|
||||
|
|
@ -1085,8 +1085,8 @@ import Base from "../../layouts/Base.astro";
|
|||
}
|
||||
btn.textContent = "Sending...";
|
||||
btn.disabled = true;
|
||||
const frn = (document.getElementById("entity-frn") as HTMLElement)?.textContent?.trim() || "";
|
||||
const entity = (document.getElementById("entity-name") as HTMLElement)?.textContent?.trim() || "";
|
||||
const frn = document.getElementById("entity-frn")?.textContent?.trim() || "";
|
||||
const entity = document.getElementById("entity-name")?.textContent?.trim() || "";
|
||||
// Send lead to API
|
||||
fetch(`${API}/api/v1/tickets`, {
|
||||
method: "POST",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue