Don't over-update fields with wrong information.

This commit is contained in:
Chloe Herd 2025-07-22 12:09:07 -04:00
parent 2d045f2192
commit ead9fc10af

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