Move stripping vehicle category off from values logic into damage locations widget

This commit is contained in:
Max 2022-02-22 10:53:22 -05:00
parent 86006d7600
commit 85378bbec5

View file

@ -88,8 +88,7 @@ export default ({
isWindshieldDamageLocation() {
return this.selectedDamageLocations.some(selectedDamages =>
{
const categoryAndGlass = selectedDamages.split('-'); //ie: "Suv-Windshield" Splits the answers into [0]"Suv" [1]"Windshield"
return Boolean(categoryAndGlass[1].toUpperCase() === "WINDSHIELD");
return Boolean(selectedDamages.toUpperCase() === "WINDSHIELD");
});
},
isRepairOptionSelected(){