From 2f322bdf9b858dcebe055b612c159ffd872433b7 Mon Sep 17 00:00:00 2001 From: AdamCaouetteSafelite Date: Fri, 18 Jul 2025 07:45:23 -0400 Subject: [PATCH] CASH-845: fix waitlist so it works with new changes --- src/layouts/schedule/schedule.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index bae6ca5eb..e0ddf92dd 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -582,7 +582,6 @@ export default { ? resultMap.premiumFeeWithPrice[0] : null; vm.updateFooterButtonText(vm.selectedTimeSlotInfo); - vm.setDisplayWaitList(); vm.pricingByDayUpchargeLineItem = resultMap.pricingByDayUpchargePart; vm.includePricingByDayUpcharge = includePricingByDayUpcharge; vm.isPricingByDayExperiment = isPricingByDayExperiment; @@ -1152,7 +1151,8 @@ export default { this.selectableDatesInshop = datePickerInitialData.initialShopTimeSlotsResponse.inshopTimeSlotsData; this.selectableDatesMobile = - datePickerInitialData.initialShopTimeSlotsResponse.mobileTimeSlotsData; + datePickerInitialData.initialShopTimeSlotsResponse.mobileTimeSlotsData; + this.setDisplayWaitList(); // TODO - CHECK FOR A PRESELECTED DATE!!! DON'T NEED TO DO THE BELOW IF THERE'S A PRESELECTED...? @@ -1420,12 +1420,12 @@ export default { experimentSettings.DISPLAY_WAITLIST, "true" ) && - this.selectableDatesInshop.days[0] && - this.selectableDatesMobile.days[0] + this.selectableDatesMobile.days && + this.selectableDatesInshop.days ) { const dateString = this.isMobileSelected - ? this.selectableDatesMobile.days[0].date - : this.selectableDatesInshop.days[0].date; + ? this.selectableDatesMobile?.days[0]?.date + : this.selectableDatesInshop?.days[0]?.date; const [year, month, day] = dateString.split("-").map(Number); const targetDate = new Date(year, month - 1, day); const currentDate = new Date();