Merge pull request #1719 from Safelite/feature/CSR-1072

This commit is contained in:
CarlNation 2024-02-02 17:06:58 -05:00 committed by GitHub
commit ae8ef1df5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,6 +138,7 @@ import {
getServiceabilityDetails,
getShopProviderData,
} from "@/layouts/service-location/helpers/service-location-helper/service-location-helper";
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
import { Provider } from "@/layouts/service-location/classes/provider";
@ -438,7 +439,14 @@ export default {
this.recalibrationInformationModal.openModal();
},
backButtonAction() {
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
if (store.getters.order.payment.isInsurance) {
navigateToHeritageFunnel({ shouldSaveSession: false });
} else {
this.$router.navigateWithoutSaving(
this.navigationScenarios.CLICKED_BACK,
this.$route
);
}
},
updateAndSaveSupportingItems() {
const supportingItems = store.getters.lineItems.supportingItems;