CASH-2378: implement copilot PR review suggestions (better guards, removing superfluous emit)
This commit is contained in:
parent
364b5d29bf
commit
e5b00fde3e
2 changed files with 2 additions and 3 deletions
|
|
@ -90,14 +90,13 @@ export default {
|
||||||
},
|
},
|
||||||
onModalClosed() {
|
onModalClosed() {
|
||||||
this.pushEvent();
|
this.pushEvent();
|
||||||
this.$emit("close-mobile-first-modal");
|
|
||||||
this.confirmedAppointment = false;
|
this.confirmedAppointment = false;
|
||||||
},
|
},
|
||||||
closeModal() {
|
closeModal() {
|
||||||
this.modal.closeModal();
|
this.modal.closeModal();
|
||||||
},
|
},
|
||||||
confirmAppointment() {
|
confirmAppointment() {
|
||||||
if (!this.selectedAppointment) return;
|
if (!this.selectedAppointment.timeSlot.id) return;
|
||||||
|
|
||||||
const selectedTimeSlot = {
|
const selectedTimeSlot = {
|
||||||
timeSlot: this.selectedAppointment.timeSlot,
|
timeSlot: this.selectedAppointment.timeSlot,
|
||||||
|
|
|
||||||
|
|
@ -2152,7 +2152,7 @@ export default {
|
||||||
(firstInshopPMDate &&
|
(firstInshopPMDate &&
|
||||||
numberOfDaysToFirstInshopPMDate <= maxDayRangeToShowAnyTimeslot);
|
numberOfDaysToFirstInshopPMDate <= maxDayRangeToShowAnyTimeslot);
|
||||||
|
|
||||||
if (showMultiLocationAppointment) {
|
if (showMultiLocationAppointment?.toLowerCase() === "true") {
|
||||||
return isMobileAppointmentInDateRange && isInshopAppointmentInDateRange;
|
return isMobileAppointmentInDateRange && isInshopAppointmentInDateRange;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue