Prettified

This commit is contained in:
Leah Schumann 2023-05-16 14:05:38 -04:00
parent c2b683114f
commit 1283cfab2b
2 changed files with 11 additions and 8 deletions

View file

@ -279,12 +279,10 @@ export default {
); );
}, },
isAppointmentTypeDisplayed() { isAppointmentTypeDisplayed() {
return ( return this.zipCode && !this.displayNoShopsAlert;
this.zipCode && !this.displayNoShopsAlert
);
}, },
// Specifically check for isRecalibrationServiceableMobile === false, not null or true.
requiresInshopRecalibration() { requiresInshopRecalibration() {
// Specifically check for isRecalibrationServiceableMobile === false, not null or true.
return ( return (
this.isServiceableInshop && this.isServiceableInshop &&
this.isGlassServiceableMobile && this.isGlassServiceableMobile &&
@ -351,7 +349,9 @@ export default {
return store.getters.order.serviceLocation.zipCode; return store.getters.order.serviceLocation.zipCode;
}, },
getSelectedAppointmentType() { getSelectedAppointmentType() {
return store.getters.order.serviceLocation.appointmentType == "None" ? null : store.getters.order.serviceLocation.appointmentType; return store.getters.order.serviceLocation.appointmentType == "None"
? null
: store.getters.order.serviceLocation.appointmentType;
}, },
getSelectedProvider() { getSelectedProvider() {
return store.getters.order.serviceLocation.provider ?? null; return store.getters.order.serviceLocation.provider ?? null;

View file

@ -194,7 +194,7 @@ export default {
); );
return index; return index;
} },
}, },
watch: { watch: {
selectedAppointmentType: { selectedAppointmentType: {
@ -215,7 +215,10 @@ export default {
await this.$nextTick(); await this.$nextTick();
if (this.selectedAppointmentType) { if (this.selectedAppointmentType) {
const selectedShopIndex = this.getSelectedProviderIndex(newValue, this.modelValue); const selectedShopIndex = this.getSelectedProviderIndex(
newValue,
this.modelValue
);
if (selectedShopIndex >= 3) { if (selectedShopIndex >= 3) {
await this.getNextShopsFromList(selectedShopIndex + 1); await this.getNextShopsFromList(selectedShopIndex + 1);