CSR-1338
prettier
This commit is contained in:
parent
e316378d2c
commit
553338e56f
2 changed files with 9 additions and 4 deletions
|
|
@ -47,7 +47,10 @@ export function getIsWindshieldOnly() {
|
|||
}
|
||||
|
||||
export function hasWindshield() {
|
||||
const windshieldMatches = store.getters.order.damage.glassToReplace?.filter((glassToReplace) => glassToReplace.glassLocation === glassLocations.WINDSHIELD) ?? [];
|
||||
const windshieldMatches =
|
||||
store.getters.order.damage.glassToReplace?.filter(
|
||||
(glassToReplace) => glassToReplace.glassLocation === glassLocations.WINDSHIELD
|
||||
) ?? [];
|
||||
return windshieldMatches.length > 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,8 @@ export async function skipVinLookup() {
|
|||
|
||||
return (
|
||||
store.getters.damage.isRepair ||
|
||||
isVinOptionalVehicle || !hasWindshield() ||
|
||||
isVinOptionalVehicle ||
|
||||
!hasWindshield() ||
|
||||
experimentMixin.methods.hasSettingEqualTo(experimentSettings.SUPPRESS_VIN_CAPTURE, "true")
|
||||
);
|
||||
}
|
||||
|
|
@ -84,8 +85,9 @@ export async function skipVinLookupNotRepair() {
|
|||
: false;
|
||||
|
||||
return (
|
||||
!store.getters.damage.isRepair &&
|
||||
(isVinOptionalVehicle || !hasWindshield() ||
|
||||
!store.getters.damage.isRepair &&
|
||||
(isVinOptionalVehicle ||
|
||||
!hasWindshield() ||
|
||||
experimentMixin.methods.hasSettingEqualTo(
|
||||
experimentSettings.SUPPRESS_VIN_CAPTURE,
|
||||
"true"
|
||||
|
|
|
|||
Loading…
Reference in a new issue