cambiamos como validar el cp

This commit is contained in:
Jaume Solís 2024-05-16 11:59:37 +02:00
parent 3627cce17b
commit ac8dbff26d
1 changed files with 5 additions and 5 deletions

View File

@ -53,18 +53,18 @@ export default defineComponent({
return formattedDate; return formattedDate;
}); });
postalCodeValid.value.isValid = true;
if(!dates.length) { if(!dates.length) {
quasarNotify({ quasarNotify({
type: "erro", type: "erro",
message: `No tenemos fechas de entrega posibles para este código postal`, message: `No tenemos fechas de entrega posibles para este código postal`,
}); });
setFieldError("postalCode", M.fiveLength); setFieldError("postalCode", M.fiveLength);
postalCodeValid.value.dataOptions = []; postalCodeValid.value.isValid = false;
postalCodeValid.value.isValid = false;
} else {
postalCodeValid.value.dataOptions = dates;
postalCodeValid.value.isValid = true;
} }
postalCodeValid.value.dataOptions = dates;
isPostalCodeLoading.value = false; isPostalCodeLoading.value = false;
} catch (error) { } catch (error) {
quasarNotify({ quasarNotify({