CSR-2177 null checking
This commit is contained in:
parent
6ef362b1ff
commit
e06d288a63
1 changed files with 8 additions and 8 deletions
|
|
@ -275,15 +275,15 @@ export default {
|
|||
|
||||
const payment = store.getters.payment;
|
||||
const policy = store.getters.policy;
|
||||
const vehicleChangedDuringPolicyLookupInHeritage =
|
||||
payment.isInsurance &&
|
||||
payment.insuranceCoverage.coverageStatus &&
|
||||
policy.policyNumber !== "";
|
||||
if (payment?.isInsurance) {
|
||||
const vehicleChangedDuringPolicyLookupInHeritage =
|
||||
payment.insuranceCoverage?.coverageStatus && policy?.policyNumber !== "";
|
||||
|
||||
// This is a safeguard to prevent insurance from seeing quote page again.
|
||||
// Usually this is caught in vehicle-questions-mixin with a referral length 6 check
|
||||
if (vehicleChangedDuringPolicyLookupInHeritage) {
|
||||
navigateToHeritageFunnel({ shouldSaveSession: true, pageNameToLog: "quote" });
|
||||
// This is a safeguard to prevent insurance from seeing quote page again.
|
||||
// Usually this is caught in vehicle-questions-mixin with a referral length 6 check
|
||||
if (vehicleChangedDuringPolicyLookupInHeritage) {
|
||||
navigateToHeritageFunnel({ shouldSaveSession: true, pageNameToLog: "quote" });
|
||||
}
|
||||
}
|
||||
|
||||
if (store.getters.isExternalParameter) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue