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;
});
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({