Re-align windshield logic

This commit is contained in:
Chloe Herd 2023-07-25 16:58:40 -04:00
parent f0a5631cda
commit 426ed27221

View file

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