Merge pull request #1225 from Safelite/defect/CSR-1497

CSR-1497 | Disclaimer not showing up correctly on same-day drop off scenarios
This commit is contained in:
scottkiener 2023-07-12 11:23:36 -04:00 committed by GitHub
commit ac59b0d8d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,10 +183,12 @@ export default {
}, },
disclaimerTextBlockCopy() { disclaimerTextBlockCopy() {
if (this.appointmentType === AppointmentTypeStrings.DROP_OFF) { if (this.appointmentType === AppointmentTypeStrings.DROP_OFF) {
if (this.isSameDay) { if (this.selectedTimeSlotId?.includes(RouteCodeFlags.ALL_DAY_DROP_OFF)) {
return this.sameDayDropOffDisclaimerText; if (this.isSameDay) {
} else if (this.selectedTimeSlotId?.includes(RouteCodeFlags.ALL_DAY_DROP_OFF)) { return this.sameDayDropOffDisclaimerText;
return this.dropoffDisclaimerText; } else {
return this.dropoffDisclaimerText;
}
} else if (this.selectedTimeSlotId?.includes(RouteCodeFlags.OVERNIGHT_DROP_OFF)) { } else if (this.selectedTimeSlotId?.includes(RouteCodeFlags.OVERNIGHT_DROP_OFF)) {
return this.overnightDropOffDisclaimerText; return this.overnightDropOffDisclaimerText;
} else { } else {