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
This commit is contained in:
parent
1b7eb2962e
commit
905eeb9e31
1 changed files with 3 additions and 14 deletions
|
|
@ -1441,20 +1441,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setDisplayWaitList() {
|
setDisplayWaitList() {
|
||||||
let dateString = null;
|
const dateString = this.isMobileSelected
|
||||||
if (
|
? this.selectableDatesMobile?.days[0]?.date
|
||||||
this.appointmentType === AppointmentTypeStrings.MOBILE &&
|
: this.selectableDatesInshop?.days[0]?.date;
|
||||||
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;
|
|
||||||
}
|
|
||||||
if (
|
if (
|
||||||
experimentMixin.methods.hasSettingEqualTo(
|
experimentMixin.methods.hasSettingEqualTo(
|
||||||
experimentSettings.DISPLAY_WAITLIST,
|
experimentSettings.DISPLAY_WAITLIST,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue