CSR-2068
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:
parent
6c00cd88b1
commit
f846c271d1
2 changed files with 10 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue