From ce35f538d256a08eb1b4d8111f90f5d033980119 Mon Sep 17 00:00:00 2001 From: Johan Gunawan Date: Wed, 11 Jan 2023 12:01:57 -0500 Subject: [PATCH] No damage string for repair New requirement says that if the damage is a repair, the navigation is not going to go to the vehicle lookup pages (by vin, by license place, by address). No damage string for repair New requirement says that if the damage is a repair, the navigation is not going to go to the vehicle lookup pages (by vin, by license place, by address). --- src/helpers/damage-helper.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/helpers/damage-helper.js b/src/helpers/damage-helper.js index 1aa4f624..09b59e21 100644 --- a/src/helpers/damage-helper.js +++ b/src/helpers/damage-helper.js @@ -5,15 +5,10 @@ import { useMainStore } from '@/store'; export function getDamageString() { const mainStore = useMainStore(); - // If it's a repair it's always a windshield. const { isRepair } = mainStore.damage; - if (isRepair) { - return damageCustomLabels.WINDSHIELD; - } - const damageLocations = mainStore.damage.glassToReplace; - if (!damageLocations || !Array.isArray(damageLocations)) { + if (isRepair || !damageLocations || !Array.isArray(damageLocations)) { return ''; }