Update index.js
This commit is contained in:
parent
475123832b
commit
fd073c8a99
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue