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) { 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.length == 1 &&
context.state.order.damage.glassToReplace.find( context.state.order.damage.glassToReplace.find(
(glassToReplace) => (glassToReplace) =>
glassToReplace.glassLocation.toLowerCase() === glassToReplace.glassLocation.toLowerCase() ===
damageLocationsSelected.WINDSHIELD.toLowerCase() damageLocationsSelected.WINDSHIELD.toLowerCase()
) )
) { ) {
return true; return true;
} }