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.$refs.datePicker.showAnotherMonth().then((moreSelectableDates) => {
// update all dates
this.selectableDatesInshop.days =
moreSelectableDates.inshopTimeSlotsData.days;
this.selectableDatesMobile.days =
moreSelectableDates.mobileTimeSlotsData.days;
// > CHLOE HERD 7/22 -- CASH-1207
// > Do not update the available dates again here;
// > 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();
});
});