From ac8dbff26d55d62942c4e2630ae84c7674f415b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaume=20Sol=C3=ADs?= Date: Thu, 16 May 2024 11:59:37 +0200 Subject: [PATCH] cambiamos como validar el cp --- src/components/@inputs/PostalCode.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/@inputs/PostalCode.vue b/src/components/@inputs/PostalCode.vue index 95979d7..2957e33 100644 --- a/src/components/@inputs/PostalCode.vue +++ b/src/components/@inputs/PostalCode.vue @@ -53,18 +53,18 @@ export default defineComponent({ return formattedDate; }); + + postalCodeValid.value.isValid = true; if(!dates.length) { quasarNotify({ type: "erro", message: `No tenemos fechas de entrega posibles para este código postal`, }); setFieldError("postalCode", M.fiveLength); - postalCodeValid.value.dataOptions = []; - postalCodeValid.value.isValid = false; - } else { - postalCodeValid.value.dataOptions = dates; - postalCodeValid.value.isValid = true; + postalCodeValid.value.isValid = false; } + + postalCodeValid.value.dataOptions = dates; isPostalCodeLoading.value = false; } catch (error) { quasarNotify({