prettier
This commit is contained in:
CarlNation 2023-04-21 10:30:58 -04:00
parent e316378d2c
commit 553338e56f
2 changed files with 9 additions and 4 deletions

View file

@ -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;
}

View file

@ -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"