Skip to content

Commit

Permalink
remove extra message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandzors committed Dec 15, 2024
1 parent bf1ca9d commit c8f5ebb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/ContactForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
Expand Down Expand Up @@ -240,7 +239,7 @@ async function submit(e: Event) {
<h2 class="flex justify-center items-center mb-4">Message Sent!</h2>
<p class="flex justify-center text-center mb-2">Thank you for contacting us!</p>
<p class="flex justify-center text-center">We will get back to you within 1-2 business days.</p>
<p v-if="responseMessage">{{ responseMessage }}</p>
<!-- <p v-if="responseMessage">{{ responseMessage }}</p> -->
</div>
</div>
</template>

0 comments on commit c8f5ebb

Please sign in to comment.