From f3738db7e49f6cae9c9b220b729839efa7464b8d Mon Sep 17 00:00:00 2001 From: Arthur Danjou Date: Sun, 18 Apr 2021 13:00:08 +0200 Subject: [PATCH] Update ContactForm.vue --- src/components/ContactForm.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/ContactForm.vue b/src/components/ContactForm.vue index 88add1e..e5a54a2 100644 --- a/src/components/ContactForm.vue +++ b/src/components/ContactForm.vue @@ -90,8 +90,7 @@ export default { 'Authorization': `Bearer ${process.env.API_TOKEN}` } }) - console.log(data) - if (data.status === 200) { + if (data && data.status === 200) { success.value = true setTimeout(() => { success.value = false