From 1283cfab2b2c949de57052f957411d1947dadd88 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Tue, 16 May 2023 14:05:38 -0400 Subject: [PATCH] Prettified --- src/layouts/service-location/service-location.vue | 10 +++++----- .../service-location/shop-question/shop-question.vue | 9 ++++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index e914fbc63..4317352d3 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -279,12 +279,10 @@ export default { ); }, isAppointmentTypeDisplayed() { - return ( - this.zipCode && !this.displayNoShopsAlert - ); + return this.zipCode && !this.displayNoShopsAlert; }, - // Specifically check for isRecalibrationServiceableMobile === false, not null or true. requiresInshopRecalibration() { + // Specifically check for isRecalibrationServiceableMobile === false, not null or true. return ( this.isServiceableInshop && this.isGlassServiceableMobile && @@ -351,7 +349,9 @@ export default { return store.getters.order.serviceLocation.zipCode; }, 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() { return store.getters.order.serviceLocation.provider ?? null; diff --git a/src/layouts/service-location/shop-question/shop-question.vue b/src/layouts/service-location/shop-question/shop-question.vue index 357c6d5c9..a61eae88d 100644 --- a/src/layouts/service-location/shop-question/shop-question.vue +++ b/src/layouts/service-location/shop-question/shop-question.vue @@ -192,9 +192,9 @@ export default { const index = providers.findIndex( (provider) => provider.providerNumber == selectedProviderNumber ); - + return index; - } + }, }, watch: { selectedAppointmentType: { @@ -215,7 +215,10 @@ export default { await this.$nextTick(); if (this.selectedAppointmentType) { - const selectedShopIndex = this.getSelectedProviderIndex(newValue, this.modelValue); + const selectedShopIndex = this.getSelectedProviderIndex( + newValue, + this.modelValue + ); if (selectedShopIndex >= 3) { await this.getNextShopsFromList(selectedShopIndex + 1);