diff --git a/apps/landing/src/app/contact/page.tsx b/apps/landing/src/app/contact/page.tsx index 0196d7ac..18755481 100644 --- a/apps/landing/src/app/contact/page.tsx +++ b/apps/landing/src/app/contact/page.tsx @@ -38,15 +38,9 @@ export default function ContactPage() { function handleSubmit(e: FormEvent) { e.preventDefault(); - const lines = [ - `Name: ${name}`, - company ? `Company: ${company}` : "", - `Email: ${email}`, - "", - message, - ] - .filter(Boolean) - .join("\n"); + const lines = [`Name: ${name}`, `Company: ${company}`, `Email: ${email}`, "", message].join( + "\n", + ); const mailto = `mailto:contact@snapotter.com?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(lines)}`; window.location.href = mailto; @@ -129,11 +123,12 @@ export default function ContactPage() {