CSR-715 Replace hardcoded Repair/Replace

This commit is contained in:
Katie 2022-07-05 09:23:18 -04:00
parent 75b1640f70
commit ba1764b9e6

View file

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