Update index.js

This commit is contained in:
Sneha 2023-06-13 17:45:48 +05:30
parent 475123832b
commit fd073c8a99

View file

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