Re-align windshield logic
This commit is contained in:
parent
f0a5631cda
commit
426ed27221
1 changed files with 3 additions and 6 deletions
|
|
@ -58,12 +58,9 @@ export default {
|
|||
];
|
||||
},
|
||||
hasWindshieldDamage() {
|
||||
return (
|
||||
this.damage.isRepair ||
|
||||
this.damage.glassToReplace?.some(
|
||||
(glass) => glass.glassLocation === damageLocationsSelected.WINDSHIELD
|
||||
)
|
||||
);
|
||||
const windshieldPieces = this.getGlassPieces(damageLocationsSelected.WINDSHIELD);
|
||||
|
||||
return this.damage.isRepair || !!windshieldPieces?.length;
|
||||
},
|
||||
hasDriverSideDamage() {
|
||||
const driverPieces = this.getGlassPieces(damageLocationsSelected.DRIVER);
|
||||
|
|
|
|||
Loading…
Reference in a new issue