cambiamos como validar el cp
This commit is contained in:
parent
3627cce17b
commit
ac8dbff26d
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue