Merge pull request #2676 from Safelite/feature/CASH-1207

Don't over-update fields with wrong information.
This commit is contained in:
chloeherdsafelite 2025-07-22 12:23:27 -04:00 committed by GitHub
commit 5bef090f54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1182,10 +1182,13 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.datePicker.showAnotherMonth().then((moreSelectableDates) => { this.$refs.datePicker.showAnotherMonth().then((moreSelectableDates) => {
// update all dates // update all dates
this.selectableDatesInshop.days =
moreSelectableDates.inshopTimeSlotsData.days; // > CHLOE HERD 7/22 -- CASH-1207
this.selectableDatesMobile.days = // > Do not update the available dates again here;
moreSelectableDates.mobileTimeSlotsData.days; // > they have already been updated by `showAnotherMonth`.
// > Doing so will likely add or remove dates,
// > desyncing the schedule page and the date-picker.
this.setDisplayWaitList(); this.setDisplayWaitList();
}); });
}); });