Merge pull request #2690 from Safelite/feature/CASH-1214

Feature/CASH-1214
This commit is contained in:
Chris 2025-07-24 14:48:02 -04:00 committed by GitHub
commit 68cf8e09a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,6 +206,10 @@ export default {
// ); // );
// } // }
} else { } else {
if (!this.selectedAnswerForTimeSlots && this.selectedRouteCode) {
// Clearing selectedRouteCode if no time slot is selected
this.resetSelectedTimeSlot();
}
appointmentTypeCmsWidgetName = this.selectedRouteCode?.includes( appointmentTypeCmsWidgetName = this.selectedRouteCode?.includes(
PREMIUM_TIME_SLOT_ID_FLAG PREMIUM_TIME_SLOT_ID_FLAG
) )
@ -552,10 +556,13 @@ export default {
return slot.id === selectedRouteCodeString; return slot.id === selectedRouteCodeString;
}); });
if (!matchingTimeSlot) { if (!matchingTimeSlot) {
this.selectedRouteCode = null; this.resetSelectedTimeSlot();
} }
} }
}, },
resetSelectedTimeSlot() {
this.selectedRouteCode = null;
},
}, },
watch: { watch: {
waitListRequested(newVal) { waitListRequested(newVal) {