commit
004fdd63e9
2 changed files with 10 additions and 2 deletions
|
|
@ -258,8 +258,13 @@ export default {
|
||||||
this.displayNonServiceableZipAlert = false;
|
this.displayNonServiceableZipAlert = false;
|
||||||
|
|
||||||
const payment = this.$store.getters.payment;
|
const payment = this.$store.getters.payment;
|
||||||
|
const policy = this.$store.getters.policy;
|
||||||
|
|
||||||
const vehicleChangedDuringPolicyLookupInHeritage =
|
const vehicleChangedDuringPolicyLookupInHeritage =
|
||||||
payment.isInsurance && payment.insuranceCoverage.coverageStatus;
|
payment.isInsurance &&
|
||||||
|
payment.insuranceCoverage.coverageStatus &&
|
||||||
|
policy.policyNumber !== "";
|
||||||
|
|
||||||
if (vehicleChangedDuringPolicyLookupInHeritage) {
|
if (vehicleChangedDuringPolicyLookupInHeritage) {
|
||||||
navigateToHeritageFunnel({
|
navigateToHeritageFunnel({
|
||||||
shouldSaveSession: true,
|
shouldSaveSession: true,
|
||||||
|
|
|
||||||
|
|
@ -367,11 +367,14 @@ export default {
|
||||||
|
|
||||||
navigateForward() {
|
navigateForward() {
|
||||||
const payment = this.$store.getters.payment;
|
const payment = this.$store.getters.payment;
|
||||||
|
const policy = this.$store.getters.policy;
|
||||||
|
|
||||||
const vehicleChangedDuringPolicyLookupInHeritage =
|
const vehicleChangedDuringPolicyLookupInHeritage =
|
||||||
payment.isInsurance &&
|
payment.isInsurance &&
|
||||||
payment.insuranceCoverage.coverageStatus &&
|
payment.insuranceCoverage.coverageStatus &&
|
||||||
payment.insuranceCoverage.coverageStatus !== "";
|
payment.insuranceCoverage.coverageStatus !== "" &&
|
||||||
|
policy.policyNumber !== "";
|
||||||
|
|
||||||
if (vehicleChangedDuringPolicyLookupInHeritage) {
|
if (vehicleChangedDuringPolicyLookupInHeritage) {
|
||||||
if (store.getters.damage.isRepair) {
|
if (store.getters.damage.isRepair) {
|
||||||
this.$router.navigateWithSaving(
|
this.$router.navigateWithSaving(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue