This commit is contained in:
Leah Schumann 2023-03-28 08:28:55 -04:00
parent 31355e1e73
commit 902cd69858
3 changed files with 14 additions and 6 deletions

View file

@ -190,10 +190,10 @@ export default {
},
},
showMilitaryZipAlert() {
return (
this.zipContainsMilitaryBase &&
(this.isZipServiceableMobile == null || this.isZipServiceableMobile === true)
);
const isZipServiceableMobile =
this.isGlassServiceableMobile && this.isRecalibrationServiceableMobile;
return this.zipContainsMilitaryBase && isZipServiceableMobile;
},
},
methods: {

View file

@ -55,8 +55,13 @@ export default {
return filteredAnswers;
},
serviceability() {
const mobileAvailable =
this.isGlassServiceableMobile && this.isRecalibrationServiceableMobile;
let mobileAvailable;
if (this.IsRecalibrationServiceableMobile == null) {
mobileAvailable = this.isGlassServiceableMobile;
} else {
mobileAvailable = this.isGlassServiceableMobile && this.isRecalibrationServiceableMobile;
}
const inshopAvailable =
this.isGlassServiceableInshop && this.isRecalibrationServiceableInshop;
@ -87,6 +92,8 @@ export default {
handler(newValue) {
if (newValue == "MobileOnly") {
this.selectedValues = "Mobile";
} else {
this.selectedValues = null;
}
},
},

View file

@ -43,6 +43,7 @@ const getDefaultState = () => {
state: null,
zipCode: null,
zipCodeCtu: null,
serviceType: null,
},
customer: {
emailAddress: null,