This commit is contained in:
Leah Schumann 2023-05-10 13:58:30 -04:00
parent fe0d3f45ce
commit 8586d6d35a
2 changed files with 21 additions and 21 deletions

View file

@ -171,7 +171,7 @@ describe("shop-question.vue", () => {
serviceZipCode: "43081", serviceZipCode: "43081",
selectedAppointmentType: "Dropoff", selectedAppointmentType: "Dropoff",
cmsWidgetName: cmsWidgetName, cmsWidgetName: cmsWidgetName,
isDisplayed: true isDisplayed: true,
}, },
mountOptions: { mountOptions: {
attachTo: document.body, attachTo: document.body,
@ -227,7 +227,7 @@ describe("shop-question.vue", () => {
serviceZipCode: "43081", serviceZipCode: "43081",
selectedAppointmentType: "Dropoff", selectedAppointmentType: "Dropoff",
cmsWidgetName: cmsWidgetName, cmsWidgetName: cmsWidgetName,
isDisplayed: true isDisplayed: true,
}, },
mountOptions: { mountOptions: {
attachTo: document.body, attachTo: document.body,
@ -306,7 +306,7 @@ describe("shop-question.vue", () => {
serviceZipCode: "43081", serviceZipCode: "43081",
selectedAppointmentType: "Dropoff", selectedAppointmentType: "Dropoff",
cmsWidgetName: cmsWidgetName, cmsWidgetName: cmsWidgetName,
isDisplayed: true isDisplayed: true,
}, },
mountOptions: { mountOptions: {
attachTo: document.body, attachTo: document.body,
@ -365,7 +365,7 @@ describe("shop-question.vue", () => {
serviceZipCode: "43081", serviceZipCode: "43081",
selectedAppointmentType: "Dropoff", selectedAppointmentType: "Dropoff",
cmsWidgetName: cmsWidgetName, cmsWidgetName: cmsWidgetName,
isDisplayed: true isDisplayed: true,
}, },
mountOptions: { mountOptions: {
attachTo: document.body, attachTo: document.body,

View file

@ -193,25 +193,25 @@ export default {
} }
}, },
}, },
shopProviders: { // shopProviders: {
async handler(newValue) { // async handler(newValue) {
this.resetAnswers(); // this.resetAnswers();
await this.$nextTick();
if (this.selectedAppointmentType) { // await this.$nextTick();
const selectedShopIndex = newValue.findIndex(
(provider) => provider.providerNumber == this.modelValue?.providerNumber
);
if (selectedShopIndex >= 3) { // if (this.selectedAppointmentType) {
await this.getNextShopsFromList(selectedShopIndex + 1); // const selectedShopIndex = newValue.findIndex(
} else { // (provider) => provider.providerNumber == this.modelValue?.providerNumber
await this.getNextShopsFromList(); // );
}
} // if (selectedShopIndex >= 3) {
}, // await this.getNextShopsFromList(selectedShopIndex + 1);
} // } else {
// await this.getNextShopsFromList();
// }
// }
// },
// },
}, },
components: { components: {
alert, alert,