From 8586d6d35ab2124614fd8252a60526ec57bed7fe Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Wed, 10 May 2023 13:58:30 -0400 Subject: [PATCH] WIP --- .../shop-question/shop-question.spec.js | 8 ++--- .../shop-question/shop-question.vue | 34 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/layouts/service-location/shop-question/shop-question.spec.js b/src/layouts/service-location/shop-question/shop-question.spec.js index 3053834a9..92bb88f21 100644 --- a/src/layouts/service-location/shop-question/shop-question.spec.js +++ b/src/layouts/service-location/shop-question/shop-question.spec.js @@ -171,7 +171,7 @@ describe("shop-question.vue", () => { serviceZipCode: "43081", selectedAppointmentType: "Dropoff", cmsWidgetName: cmsWidgetName, - isDisplayed: true + isDisplayed: true, }, mountOptions: { attachTo: document.body, @@ -227,7 +227,7 @@ describe("shop-question.vue", () => { serviceZipCode: "43081", selectedAppointmentType: "Dropoff", cmsWidgetName: cmsWidgetName, - isDisplayed: true + isDisplayed: true, }, mountOptions: { attachTo: document.body, @@ -306,7 +306,7 @@ describe("shop-question.vue", () => { serviceZipCode: "43081", selectedAppointmentType: "Dropoff", cmsWidgetName: cmsWidgetName, - isDisplayed: true + isDisplayed: true, }, mountOptions: { attachTo: document.body, @@ -365,7 +365,7 @@ describe("shop-question.vue", () => { serviceZipCode: "43081", selectedAppointmentType: "Dropoff", cmsWidgetName: cmsWidgetName, - isDisplayed: true + isDisplayed: true, }, mountOptions: { attachTo: document.body, diff --git a/src/layouts/service-location/shop-question/shop-question.vue b/src/layouts/service-location/shop-question/shop-question.vue index 90efb7f26..434c46d2e 100644 --- a/src/layouts/service-location/shop-question/shop-question.vue +++ b/src/layouts/service-location/shop-question/shop-question.vue @@ -193,25 +193,25 @@ export default { } }, }, - shopProviders: { - async handler(newValue) { - this.resetAnswers(); - - await this.$nextTick(); + // shopProviders: { + // async handler(newValue) { + // this.resetAnswers(); - if (this.selectedAppointmentType) { - const selectedShopIndex = newValue.findIndex( - (provider) => provider.providerNumber == this.modelValue?.providerNumber - ); + // await this.$nextTick(); - if (selectedShopIndex >= 3) { - await this.getNextShopsFromList(selectedShopIndex + 1); - } else { - await this.getNextShopsFromList(); - } - } - }, - } + // if (this.selectedAppointmentType) { + // const selectedShopIndex = newValue.findIndex( + // (provider) => provider.providerNumber == this.modelValue?.providerNumber + // ); + + // if (selectedShopIndex >= 3) { + // await this.getNextShopsFromList(selectedShopIndex + 1); + // } else { + // await this.getNextShopsFromList(); + // } + // } + // }, + // }, }, components: { alert,