Merge pull request #2678 from Safelite/feature/CASH-1212

Feature/CASH-1212
This commit is contained in:
Chris 2025-07-22 14:40:13 -04:00 committed by GitHub
commit dfbdee4f90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();
});
});