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