Move stripping vehicle category off from values logic into damage locations widget
This commit is contained in:
parent
86006d7600
commit
85378bbec5
1 changed files with 1 additions and 2 deletions
|
|
@ -88,8 +88,7 @@ export default ({
|
||||||
isWindshieldDamageLocation() {
|
isWindshieldDamageLocation() {
|
||||||
return this.selectedDamageLocations.some(selectedDamages =>
|
return this.selectedDamageLocations.some(selectedDamages =>
|
||||||
{
|
{
|
||||||
const categoryAndGlass = selectedDamages.split('-'); //ie: "Suv-Windshield" Splits the answers into [0]"Suv" [1]"Windshield"
|
return Boolean(selectedDamages.toUpperCase() === "WINDSHIELD");
|
||||||
return Boolean(categoryAndGlass[1].toUpperCase() === "WINDSHIELD");
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
isRepairOptionSelected(){
|
isRepairOptionSelected(){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue