CASH-845: fix waitlist so it works with new changes
This commit is contained in:
parent
2cf882988d
commit
2f322bdf9b
1 changed files with 6 additions and 6 deletions
|
|
@ -582,7 +582,6 @@ export default {
|
||||||
? resultMap.premiumFeeWithPrice[0]
|
? resultMap.premiumFeeWithPrice[0]
|
||||||
: null;
|
: null;
|
||||||
vm.updateFooterButtonText(vm.selectedTimeSlotInfo);
|
vm.updateFooterButtonText(vm.selectedTimeSlotInfo);
|
||||||
vm.setDisplayWaitList();
|
|
||||||
vm.pricingByDayUpchargeLineItem = resultMap.pricingByDayUpchargePart;
|
vm.pricingByDayUpchargeLineItem = resultMap.pricingByDayUpchargePart;
|
||||||
vm.includePricingByDayUpcharge = includePricingByDayUpcharge;
|
vm.includePricingByDayUpcharge = includePricingByDayUpcharge;
|
||||||
vm.isPricingByDayExperiment = isPricingByDayExperiment;
|
vm.isPricingByDayExperiment = isPricingByDayExperiment;
|
||||||
|
|
@ -1152,7 +1151,8 @@ export default {
|
||||||
this.selectableDatesInshop =
|
this.selectableDatesInshop =
|
||||||
datePickerInitialData.initialShopTimeSlotsResponse.inshopTimeSlotsData;
|
datePickerInitialData.initialShopTimeSlotsResponse.inshopTimeSlotsData;
|
||||||
this.selectableDatesMobile =
|
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...?
|
// 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,
|
experimentSettings.DISPLAY_WAITLIST,
|
||||||
"true"
|
"true"
|
||||||
) &&
|
) &&
|
||||||
this.selectableDatesInshop.days[0] &&
|
this.selectableDatesMobile.days &&
|
||||||
this.selectableDatesMobile.days[0]
|
this.selectableDatesInshop.days
|
||||||
) {
|
) {
|
||||||
const dateString = this.isMobileSelected
|
const dateString = this.isMobileSelected
|
||||||
? this.selectableDatesMobile.days[0].date
|
? this.selectableDatesMobile?.days[0]?.date
|
||||||
: this.selectableDatesInshop.days[0].date;
|
: this.selectableDatesInshop?.days[0]?.date;
|
||||||
const [year, month, day] = dateString.split("-").map(Number);
|
const [year, month, day] = dateString.split("-").map(Number);
|
||||||
const targetDate = new Date(year, month - 1, day);
|
const targetDate = new Date(year, month - 1, day);
|
||||||
const currentDate = new Date();
|
const currentDate = new Date();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue