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() {
|
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;
|
return windshieldMatches.length > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,8 @@ export async function skipVinLookup() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
store.getters.damage.isRepair ||
|
store.getters.damage.isRepair ||
|
||||||
isVinOptionalVehicle || !hasWindshield() ||
|
isVinOptionalVehicle ||
|
||||||
|
!hasWindshield() ||
|
||||||
experimentMixin.methods.hasSettingEqualTo(experimentSettings.SUPPRESS_VIN_CAPTURE, "true")
|
experimentMixin.methods.hasSettingEqualTo(experimentSettings.SUPPRESS_VIN_CAPTURE, "true")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -84,8 +85,9 @@ export async function skipVinLookupNotRepair() {
|
||||||
: false;
|
: false;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
!store.getters.damage.isRepair &&
|
!store.getters.damage.isRepair &&
|
||||||
(isVinOptionalVehicle || !hasWindshield() ||
|
(isVinOptionalVehicle ||
|
||||||
|
!hasWindshield() ||
|
||||||
experimentMixin.methods.hasSettingEqualTo(
|
experimentMixin.methods.hasSettingEqualTo(
|
||||||
experimentSettings.SUPPRESS_VIN_CAPTURE,
|
experimentSettings.SUPPRESS_VIN_CAPTURE,
|
||||||
"true"
|
"true"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue