From 885e8b2f398825005243974fdbda8ed7336fcae4 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Tue, 31 Mar 2026 14:00:04 -0400 Subject: [PATCH] CASH-2380: add in new constant arrays to also check to skip vin capture --- src/store/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 94128a402..ff6b52524 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -10,6 +10,8 @@ import { applicationConfig } from "@/constants/application-config"; import { experimentTriggers } from "@/constants/experiments"; import { damageLocationsSelected } from "@/constants/damage-locations-selected"; import { singleWindshieldCarIds } from "@/constants/single-windshield-carids"; +import { skipVinCaptureCarIds } from "@/constants/skip-vin-capture-car-ids.js"; +import { skipPartsQuestionsCarIds } from "@/constants/skip-parts-questions-car-ids.js"; import { routeData } from "@/router/constants/routes"; import { deleteFunnelCookie, @@ -3516,10 +3518,16 @@ export const actions = { }, isVinOptionalVehicle(context) { - //Optional for carIds with only a single windshield + //Optional for certain carIds if (singleWindshieldCarIds.find((item) => item === context.state.order.vehicle.carId)) { return true; } + if (skipVinCaptureCarIds.find((item) => item === context.state.order.vehicle.carId)) { + return true; + } + if (skipPartsQuestionsCarIds.find((item) => item === context.state.order.vehicle.carId)) { + return true; + } //Optional for specific YMMSs switch (context.state.order.vehicle.make.toLowerCase()) { case "porsche":