Merge pull request #1808 from Safelite/feature/CSR-2035

CSR-2035
This commit is contained in:
CarlNation 2024-03-20 09:19:01 -04:00 committed by GitHub
commit 71abfc1d90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View file

@ -129,11 +129,6 @@ export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLo
heritageParms["forceEndToEndInsurance"] = true;
}
// if they are going to heritage and already have a policy number then this is a nav back flow
if (store.getters.policy.policyNumber) {
heritageParms["insuranceNavBack"] = true;
}
router.navigateToExternalUrl(externalUrls.HERITAGE_FUNNEL, heritageParms);
}

View file

@ -458,6 +458,12 @@ export default {
},
updateAndSaveSupportingItems() {
const supportingItems = store.getters.lineItems.supportingItems;
// for insurance orders, fees can get removed causing supportingitems to be null or empty
if (!supportingItems) {
return;
}
// if we have a mobile fee, then save/update supporting items
if (this.selectedAppointmentType == "Mobile") {
const mobileFeeIndex = supportingItems.findIndex(