From 905eeb9e3174ce9c359b385c9791be82dbbca12b Mon Sep 17 00:00:00 2001 From: Johnny shultz Date: Thu, 24 Jul 2025 12:41:19 -0400 Subject: [PATCH] CASH-1230 CASH-1230 simplifed code back to the way it was in setDisplayWaitlist, only need to call this method on an appointment type change --- src/layouts/schedule/schedule.vue | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 2e328c1eb..23671a356 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -1441,20 +1441,9 @@ export default { } }, setDisplayWaitList() { - let dateString = null; - if ( - this.appointmentType === AppointmentTypeStrings.MOBILE && - this.selectableDatesMobile.days.length > 0 - ) { - dateString = this.selectableDatesMobile?.days[0]?.date; - } else if ( - this.appointmentType === AppointmentTypeStrings.IN_SHOP || - this.appointmentType === AppointmentTypeStrings.DROP_OFF || - (this.appointmentType === AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF && - this.selectableDatesInshop.days.length > 0) - ) { - dateString = this.selectableDatesInshop?.days[0]?.date; - } + const dateString = this.isMobileSelected + ? this.selectableDatesMobile?.days[0]?.date + : this.selectableDatesInshop?.days[0]?.date; if ( experimentMixin.methods.hasSettingEqualTo( experimentSettings.DISPLAY_WAITLIST,