update computed property for endorsements
This commit is contained in:
parent
ddb394e0b5
commit
60abf0697e
1 changed files with 6 additions and 2 deletions
|
|
@ -119,8 +119,12 @@ export default {
|
||||||
: 0;
|
: 0;
|
||||||
},
|
},
|
||||||
endorsementsForSelectedVehicle() {
|
endorsementsForSelectedVehicle() {
|
||||||
// hardcoded until endorsements service is ready
|
const vehicle = this.policyVehicles.find((policyVehicle) =>
|
||||||
return true;
|
policyVehicle?.vin === this.selectedVehicleVin);
|
||||||
|
if (!vehicle) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
return vehicle.endorsements?.length > 0;
|
||||||
},
|
},
|
||||||
repairWaivedForSelectedVehicle() {
|
repairWaivedForSelectedVehicle() {
|
||||||
const vehicle = this.policyVehicles.find((policyVehicle) =>
|
const vehicle = this.policyVehicles.find((policyVehicle) =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue