From 85378bbec5b97425b952db4d7cd4d22a5ff580c1 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 22 Feb 2022 10:53:22 -0500 Subject: [PATCH] Move stripping vehicle category off from values logic into damage locations widget --- .../vehicle-damage/windshield-options/windshield-options.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/layouts/vehicle-damage/windshield-options/windshield-options.vue b/src/layouts/vehicle-damage/windshield-options/windshield-options.vue index db6569709..e407b33a9 100644 --- a/src/layouts/vehicle-damage/windshield-options/windshield-options.vue +++ b/src/layouts/vehicle-damage/windshield-options/windshield-options.vue @@ -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(){