This commit is contained in:
CarlNation 2022-05-06 10:17:02 -04:00
parent 78f965ec4f
commit 3466347eb7

View file

@ -82,6 +82,7 @@ import {
Form, Form,
defineRule, defineRule,
} from "vee-validate"; } from "vee-validate";
// DEFINE VALIDATION RULES // DEFINE VALIDATION RULES
defineRule( defineRule(
"license-plate-required", "license-plate-required",
@ -104,6 +105,7 @@ export default {
async beforeRouteEnter(to, from, next) { async beforeRouteEnter(to, from, next) {
// Call APIs // Call APIs
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage); const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
// Settle promises and get results // Settle promises and get results
const promiseResultMap = [ const promiseResultMap = [
{ {
@ -234,6 +236,7 @@ export default {
}); });
this.isCarIdDifferent = this.isCarIdDifferent =
vinLookup.data.vehicle.carId !== store.getters.vehicle.carId; vinLookup.data.vehicle.carId !== store.getters.vehicle.carId;
if ( if (
this.isCarIdDifferent && this.isCarIdDifferent &&
vinLookup.data.vehicle.carId !== this.previouslyEnteredCarId vinLookup.data.vehicle.carId !== this.previouslyEnteredCarId
@ -249,11 +252,13 @@ export default {
this.$refs.funnelFooter.removeLoader(); this.$refs.funnelFooter.removeLoader();
return; return;
} }
this.updateCustomerInfo( this.updateCustomerInfo(
vinLookup.data.vin, vinLookup.data.vin,
vinLookup.data.vehicle, vinLookup.data.vehicle,
zipValidation.data.state zipValidation.data.state
); );
this.navigateForward(); this.navigateForward();
}, },
navigateForward() { navigateForward() {