From ba1764b9e693a28d154c11730e38464a1f62c91a Mon Sep 17 00:00:00 2001 From: Katie Date: Tue, 5 Jul 2022 09:23:18 -0400 Subject: [PATCH] CSR-715 Replace hardcoded Repair/Replace --- .../vehicle-damage/windshield-options/windshield-options.vue | 4 ++-- 1 file changed, 2 insertions(+), 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 e5d790854..da5b594bc 100644 --- a/src/layouts/vehicle-damage/windshield-options/windshield-options.vue +++ b/src/layouts/vehicle-damage/windshield-options/windshield-options.vue @@ -140,12 +140,12 @@ export default ({ isRepairOptionSelected(){ if (!this.selectedWindshieldDamageTypeValue) return false; - return this.selectedWindshieldDamageTypeValue.toUpperCase() === "REPAIR" && this.isWindshieldDamageLocation; + return this.selectedWindshieldDamageTypeValue.toUpperCase() === damageLocationsSelected.REPAIR.toUpperCase() && this.isWindshieldDamageLocation; }, isReplaceOptionSelected(){ if (!this.selectedWindshieldDamageTypeValue) return false; - return this.selectedWindshieldDamageTypeValue.toUpperCase() === "REPLACE" && this.isWindshieldDamageLocation; + return this.selectedWindshieldDamageTypeValue.toUpperCase() === damageLocationsSelected.REPLACE.toUpperCase() && this.isWindshieldDamageLocation; }, isWindshieldReplaceAvailable() { return !(Array.isArray(this.windshieldAvailableReplacementOptions) && this.windshieldAvailableReplacementOptions.length < 1);