CSR-1419: fix issue so matching zips will still save and close
This commit is contained in:
parent
2913d8d022
commit
c9776cfa60
1 changed files with 7 additions and 20 deletions
|
|
@ -202,6 +202,7 @@ export default {
|
|||
this.internalModel = deepClone(this.modelValue);
|
||||
},
|
||||
onModalClosed() {
|
||||
this.displayInvalidZipAlert = false;
|
||||
this.internalModel = deepClone(this.modelValue);
|
||||
this.resetValidation();
|
||||
},
|
||||
|
|
@ -236,17 +237,6 @@ export default {
|
|||
});
|
||||
},
|
||||
async setMobileLocation() {
|
||||
// START - TEMP CODE FROM A CAOUETTE 5/25/23 TO BE REMOVED BY EOD
|
||||
let tempTest = false;
|
||||
let internalModelAddressQuestions = this.internalModel.addressQuestions;
|
||||
let modelValueAddressQuestions = this.modelValue.addressQuestions;
|
||||
if (tempTest) {
|
||||
// THIS WILL NEVER BE TRUE
|
||||
console.warn(internalModelAddressQuestions);
|
||||
console.warn(modelValueAddressQuestions);
|
||||
}
|
||||
// END - TEMP CODE FROM A CAOUETTE 5/25/23 TO BE REMOVED BY EOD
|
||||
|
||||
if (
|
||||
this.internalModel.addressQuestions.zipCode !==
|
||||
this.modelValue.addressQuestions.zipCode
|
||||
|
|
@ -272,22 +262,19 @@ export default {
|
|||
this.$emit("updated-serviceability", serviceabilityDetails.data);
|
||||
this.$emit("updated-contains-military-base", zipCodeData.containsMilitaryBase);
|
||||
|
||||
// Update the page level model
|
||||
this.$emit("update:modelValue", this.internalModel);
|
||||
|
||||
if (this.onZipUpdateCallback) {
|
||||
await this.onZipUpdateCallback(serviceZipCode);
|
||||
}
|
||||
// Update the page level model
|
||||
this.$emit("update:modelValue", this.internalModel);
|
||||
|
||||
this.closeModal();
|
||||
}
|
||||
} else {
|
||||
// START - TEMP CODE FROM A CAOUETTE 5/25/23 TO BE REMOVED BY EOD
|
||||
if (tempTest) {
|
||||
// THIS WILL NEVER BE TRUE
|
||||
console.warn("the zips match and the exception was run");
|
||||
}
|
||||
// END - TEMP CODE FROM A CAOUETTE 5/25/23 TO BE REMOVED BY EOD
|
||||
// Update the page level model
|
||||
this.$emit("update:modelValue", this.internalModel);
|
||||
|
||||
this.closeModal();
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue