From 4f6c07f37b474a9c621e47b983a8285eb7468cfa Mon Sep 17 00:00:00 2001 From: bmauger Date: Fri, 20 May 2022 08:20:34 -0400 Subject: [PATCH] CSR-639 fix spacing. --- src/layouts/vehicle-damage/vehicle-damage.vue | 6 +++--- .../windshield-options/windshield-options.vue | 20 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index ddeae5bec..88c8973fd 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -32,7 +32,7 @@ :selectedDamageLocations="selectedDamageLocations" /> - { - if (value.toString().toUpperCase().includes(damageLocationsSelected.REPAIR.toUpperCase()) && - otherFieldValue.toString().toUpperCase().includes(damageLocationsSelected.WINDSHIELD.toUpperCase()) && - Array.isArray(otherFieldValue) && - otherFieldValue.length > 1) + if (value.toString().toUpperCase().includes(damageLocationsSelected.REPAIR.toUpperCase()) && + otherFieldValue.toString().toUpperCase().includes(damageLocationsSelected.WINDSHIELD.toUpperCase()) && + Array.isArray(otherFieldValue) && + otherFieldValue.length > 1) { return false; } @@ -72,8 +72,8 @@ defineRule("repair-only", (value) => { return false; }); defineRule("prevent-split-and-single-together", (value) => { - if (value.toString().toUpperCase().includes(damageLocationsSelected.SINGLE.toUpperCase()) && - (value.toString().toUpperCase().includes(damageLocationsSelected.DRIVER.toUpperCase()) || + if (value.toString().toUpperCase().includes(damageLocationsSelected.SINGLE.toUpperCase()) && + (value.toString().toUpperCase().includes(damageLocationsSelected.DRIVER.toUpperCase()) || value.toString().toUpperCase().includes(damageLocationsSelected.PASSENGER.toUpperCase()))) { return false; @@ -145,7 +145,7 @@ export default ({ } }, isWindshieldDamageLocation() { - return this.selectedDamageLocations.some(selectedDamages => + return this.selectedDamageLocations.some(selectedDamages => { return Boolean(selectedDamages.toUpperCase() === "WINDSHIELD"); }); @@ -193,4 +193,4 @@ export default ({ alert, }, }) - \ No newline at end of file +