From 15bd281ecd966c53cd70f823375266c622801aa9 Mon Sep 17 00:00:00 2001 From: BradleyDsx <132986491+BradleyDsx@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:10:42 +0100 Subject: [PATCH 1/2] Fix bug send form --- src/components/home/ContactForm.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/home/ContactForm.vue b/src/components/home/ContactForm.vue index 7c05098..1480e65 100644 --- a/src/components/home/ContactForm.vue +++ b/src/components/home/ContactForm.vue @@ -102,6 +102,9 @@ const validatePhone = () => { } else if (!phonePattern.test(phone.value)) { error.value = 'Le téléphone doit contenir uniquement des chiffres, +, ,, . ou un espace.'; return false; + }else{ + error.value = ''; + return true; } }; From 04810f12970d6db1294a4a1fe499c9a5850c00a0 Mon Sep 17 00:00:00 2001 From: BradleyDsx <132986491+BradleyDsx@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:19:08 +0100 Subject: [PATCH 2/2] Correction text error validerPhone --- src/components/home/ContactForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/home/ContactForm.vue b/src/components/home/ContactForm.vue index 1480e65..0965685 100644 --- a/src/components/home/ContactForm.vue +++ b/src/components/home/ContactForm.vue @@ -100,7 +100,7 @@ const validatePhone = () => { error.value = ''; return true; } else if (!phonePattern.test(phone.value)) { - error.value = 'Le téléphone doit contenir uniquement des chiffres, +, ,, . ou un espace.'; + error.value = 'Le téléphone doit contenir uniquement des chiffres, +, ,, . ou des espaces.'; return false; }else{ error.value = '';