diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index e0edcd544..948a7de19 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, @@ -1743,8 +1751,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(); @@ -1876,7 +1884,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 }, }, },