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