CASH-2378: implement copilot PR review suggestions (better guards, removing superfluous emit)

This commit is contained in:
Adam Caouette 2026-03-04 08:41:38 -05:00
parent 364b5d29bf
commit e5b00fde3e
2 changed files with 2 additions and 3 deletions

View file

@ -90,14 +90,13 @@ export default {
},
onModalClosed() {
this.pushEvent();
this.$emit("close-mobile-first-modal");
this.confirmedAppointment = false;
},
closeModal() {
this.modal.closeModal();
},
confirmAppointment() {
if (!this.selectedAppointment) return;
if (!this.selectedAppointment.timeSlot.id) return;
const selectedTimeSlot = {
timeSlot: this.selectedAppointment.timeSlot,

View file

@ -2152,7 +2152,7 @@ export default {
(firstInshopPMDate &&
numberOfDaysToFirstInshopPMDate <= maxDayRangeToShowAnyTimeslot);
if (showMultiLocationAppointment) {
if (showMultiLocationAppointment?.toLowerCase() === "true") {
return isMobileAppointmentInDateRange && isInshopAppointmentInDateRange;
}
return false;