CASH-1790 prettier fixes

This commit is contained in:
Adam Caouette 2026-01-29 13:55:00 -05:00
parent 2858925811
commit 97c1446d37

View file

@ -400,9 +400,10 @@ export default {
); );
}, },
isLazyLoad() { isLazyLoad() {
if (this.availableTimeSlots?.length < (this.lazyLoadAmountToLoad + 1)) return false; if (this.availableTimeSlots?.length < this.lazyLoadAmountToLoad + 1) return false;
if (this.isMobileAppointment) return false; if (this.isMobileAppointment) return false;
if (this.selectedAnswerForTimeSlots && !this.isSelectedInshopTimeSlotShowing) return false; if (this.selectedAnswerForTimeSlots && !this.isSelectedInshopTimeSlotShowing)
return false;
return true; return true;
}, },
availableTimeSlotsForInshop() { availableTimeSlotsForInshop() {
@ -410,10 +411,10 @@ export default {
}, },
isSelectedInshopTimeSlotShowing() { isSelectedInshopTimeSlotShowing() {
if (!this.selectedAnswerForTimeSlots) return false; if (!this.selectedAnswerForTimeSlots) return false;
const idx = this.availableTimeSlotsForInshop?.findIndex(timeSlot => { const idx = this.availableTimeSlotsForInshop?.findIndex((timeSlot) => {
return timeSlot.value === this.selectedAnswerForTimeSlots; return timeSlot.value === this.selectedAnswerForTimeSlots;
}); });
if ((idx > -1) && (idx < this.lazyLoadAmountToLoad)) { if (idx > -1 && idx < this.lazyLoadAmountToLoad) {
return true; return true;
} }
return false; return false;