From c8f5ebb3db01c0bfd40c91dc475152feb643fd5b Mon Sep 17 00:00:00 2001 From: Alexander Henderson Date: Sun, 15 Dec 2024 00:01:36 -0500 Subject: [PATCH] remove extra message --- src/components/ContactForm.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/ContactForm.vue b/src/components/ContactForm.vue index 4d28708..daf3bdf 100644 --- a/src/components/ContactForm.vue +++ b/src/components/ContactForm.vue @@ -91,10 +91,9 @@ async function submit(e: Event) { if (response.ok) { responseMessage.value = "Message sent successfully!"; - // Instead of resetting the form, hide it. formVisible.value = false; } else { - responseMessage.value = `Error: ${data.message || "Something went wrong"}`; + responseMessage.value = `${data.message || "Something went wrong"}`; } } catch (error) { responseMessage.value = 'An error occurred. Please try again later.'; @@ -240,7 +239,7 @@ async function submit(e: Event) {

Message Sent!

Thank you for contacting us!

We will get back to you within 1-2 business days.

-

{{ responseMessage }}

+ \ No newline at end of file