This commit is contained in:
Sneha 2023-06-13 17:44:24 +05:30
parent e550e3f5ce
commit 475123832b
2 changed files with 4 additions and 3 deletions

View file

@ -1532,7 +1532,8 @@ export const actions = {
}, },
isVinOptionalVehicle(context) { isVinOptionalVehicle(context) {
if ( if (
singleWindshieldCarid.find((item) => item === context.state.order.vehicle.carId) && singleWindshieldCarid.find((item) => item === context.state.order.vehicle.carId)
&& context.state.order.damage.glassToReplace.length == 1 &&
context.state.order.damage.glassToReplace.find( context.state.order.damage.glassToReplace.find(
(glassToReplace) => (glassToReplace) =>
glassToReplace.glassLocation.toLowerCase() === glassToReplace.glassLocation.toLowerCase() ===

View file

@ -2818,7 +2818,7 @@ describe("isVinOptionalVehicle", () => {
"CR00062396", "CR00062396",
"make3", "make3",
[{ glassLocation: "windshield" }, { glassLocation: "driver" }], [{ glassLocation: "windshield" }, { glassLocation: "driver" }],
true, false,
], ],
["CR00066428", "make4", [{ glassLocation: "rear" }], false], ["CR00066428", "make4", [{ glassLocation: "rear" }], false],
]; ];