Merge pull request #648 from Safelite/defect/CSR-778

CSR-778 Fix equality check
This commit is contained in:
katieoh-safelite 2022-08-10 16:54:44 -04:00 committed by GitHub
commit c673a4ba50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,12 +153,12 @@ export default ({
isRepairOptionSelected(){
if (!this.selectedWindshieldDamageTypeValues) return false;
return this.selectedWindshieldDamageTypeValues.some(val => val.toUpperCase() === damageLocationsSelected.REPAIR) && this.isWindshieldDamageLocation;
return this.selectedWindshieldDamageTypeValues.some(val => val === damageLocationsSelected.REPAIR) && this.isWindshieldDamageLocation;
},
isReplaceOptionSelected(){
if (!this.selectedWindshieldDamageTypeValues) return false;
return this.selectedWindshieldDamageTypeValues.some(val => val.toUpperCase() === damageLocationsSelected.REPLACE) && this.isWindshieldDamageLocation;
return this.selectedWindshieldDamageTypeValues.some(val => val === damageLocationsSelected.REPLACE) && this.isWindshieldDamageLocation;
},
isWindshieldReplaceAvailable() {
return !(Array.isArray(this.windshieldAvailableReplacementOptions) && this.windshieldAvailableReplacementOptions.length < 1);