From 528769aec183b537b5af64f8ab26ffc07319956f Mon Sep 17 00:00:00 2001 From: Chris Redelinghuys Date: Fri, 19 Sep 2025 11:01:31 -0400 Subject: [PATCH] CASH-1513: Get selected timeslot when switching service type --- src/layouts/schedule/schedule.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 5ac9d3278..b2ca5ee7f 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -650,15 +650,14 @@ export default { } }, showTimeSlotQuestion() { - var selectedDate = this.selectedDate; if ( this.selectedDate && this.selectedDate.includes("mobile") && !this.isMobileSelected ) { - selectedDate = this.getSelectedDate(); + this.getNewSelectedDate(); } - return selectedDate && this.appointmentTypeFromAppointmentTypeQuestion; + return this.selectedDate && this.appointmentTypeFromAppointmentTypeQuestion; }, isMobileStaticRecalibrationApplicable() { return ( @@ -1787,6 +1786,9 @@ export default { this.selectedDate = this.getSelectedDate(); this.setDisplayWaitList(); }, + getNewSelectedDate() { + this.selectedDate = this.getSelectedDate(); + }, }, watch: { appointmentTypeFromAppointmentTypeQuestion: {