CSR-2068 navigating manually triggers a session load.  This reloads the referral from SV2 and the coverage status will be set to pending triggering the vehicle change during policy lookup even though they have not been to heritage yet.  Changed the condition to include the policy number.
This commit is contained in:
CarlNation 2024-04-09 09:41:46 -04:00
parent 6c00cd88b1
commit f846c271d1
2 changed files with 10 additions and 2 deletions

View file

@ -258,8 +258,13 @@ export default {
this.displayNonServiceableZipAlert = false;
const payment = this.$store.getters.payment;
const policy = this.$store.getters.policy;
const vehicleChangedDuringPolicyLookupInHeritage =
payment.isInsurance && payment.insuranceCoverage.coverageStatus;
payment.isInsurance &&
payment.insuranceCoverage.coverageStatus &&
policy.policyNumber !== "";
if (vehicleChangedDuringPolicyLookupInHeritage) {
navigateToHeritageFunnel({
shouldSaveSession: true,

View file

@ -367,11 +367,14 @@ export default {
navigateForward() {
const payment = this.$store.getters.payment;
const policy = this.$store.getters.policy;
const vehicleChangedDuringPolicyLookupInHeritage =
payment.isInsurance &&
payment.insuranceCoverage.coverageStatus &&
payment.insuranceCoverage.coverageStatus !== "";
payment.insuranceCoverage.coverageStatus !== "" &&
policy.policyNumber !== "";
if (vehicleChangedDuringPolicyLookupInHeritage) {
if (store.getters.damage.isRepair) {
this.$router.navigateWithSaving(