Wrapped saveMobileLocation (mobile-location-modal-questions) into a condition to ensure that the zip has actually changed.

This commit is contained in:
Leah Schumann 2023-05-16 06:44:24 -04:00
parent 91d723b3eb
commit 6bb83f4d65

View file

@ -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: {