CASH-1212: Update selected date if it's null after getting dates for another month

This commit is contained in:
Chris Redelinghuys 2025-07-22 14:29:04 -04:00
parent 5b4e4d1b45
commit 52b5cf42f0

View file

@ -1176,8 +1176,8 @@ export default {
if (!this.selectedDate) {
// if no date is preselected on load, then select the first available
const selectedDateMobile = this.getSelectedDateForMobile();
const selectedDateInshop = this.getSelectedDateForInshop();
let selectedDateMobile = this.getSelectedDateForMobile();
let selectedDateInshop = this.getSelectedDateForInshop();
// if there is still no selected date, then load more and try again
if (
@ -1195,6 +1195,13 @@ export default {
// > Doing so will likely add or remove dates,
// > desyncing the schedule page and the date-picker.
if (!selectedDateInshop) {
selectedDateInshop = this.getSelectedDateForInshop();
}
if (!selectedDateMobile) {
selectedDateMobile = this.getSelectedDateForMobile();
}
this.setDisplayWaitList();
});
});