Wrapped saveMobileLocation (mobile-location-modal-questions) into a condition to ensure that the zip has actually changed.
This commit is contained in:
parent
91d723b3eb
commit
6bb83f4d65
1 changed files with 28 additions and 23 deletions
|
|
@ -236,6 +236,10 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async setMobileLocation() {
|
async setMobileLocation() {
|
||||||
|
if (
|
||||||
|
this.internalModel.addressQuestions.zipCode !==
|
||||||
|
this.modelValue.addressQuestions.zipCode
|
||||||
|
) {
|
||||||
// Validate the Zip Code
|
// Validate the Zip Code
|
||||||
const zipCodeData = await this.getZipCodeData(
|
const zipCodeData = await this.getZipCodeData(
|
||||||
this.internalModel.addressQuestions.zipCode
|
this.internalModel.addressQuestions.zipCode
|
||||||
|
|
@ -266,6 +270,7 @@ export default {
|
||||||
|
|
||||||
this.closeModal();
|
this.closeModal();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue