diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index bee86a537..62a669bcd 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -22,6 +22,7 @@ cmsWidgetName="ScheduleYourServiceWidget" id="schedule-your-service" /> 0; + } else { + return this.selectableDatesInshop?.days?.length > 0; + } + }, }, methods: { splitCopyOnCMSPlaceHolder, @@ -1727,8 +1735,8 @@ export default { } else { this.appointmentType = null; } - this.setSelectedDateToFirstAvailable(); - this.setDisplayWaitList(); + this.setSelectedDateToFirstAvailable(); // v-if on appointmentTypeQuestion ensures dates have been loaded by now + this.setDisplayWaitList(); // v-if on appointmentTypeQuestion ensures dates have been loaded by now }, setSelectedDateToFirstAvailable() { this.selectedDate = this.getFirstAvailableDate(); @@ -1849,7 +1857,7 @@ export default { watch: { appointmentTypeFromAppointmentTypeQuestion: { handler(newValue, oldValue) { - this.handleAppointmentTypeChange(newValue); + this.handleAppointmentTypeChange(newValue); // v-if on appointmentTypeQuestion ensures dates have been loaded by now }, }, },