CSR-923 Fix alert
This commit is contained in:
parent
cf9adbb13b
commit
e3b49488c8
1 changed files with 3 additions and 1 deletions
|
|
@ -44,6 +44,8 @@ export default {
|
|||
);
|
||||
},
|
||||
differentVehicleAlertBody() {
|
||||
console.log(this.getCmsContent("FoundWindshield", "BodyText"))
|
||||
console.log({selectedVehicle: this.selectedVehicle, vehicles: this.vehicles, selectedVehicleVin: this.selectedVehicleVin})
|
||||
return this.getCmsContent("FoundWindshield", "BodyText")
|
||||
.replaceAll("{custom:damage}", getDamageString())
|
||||
.replaceAll("{custom:vinlookupYear}", this.selectedVehicle?.vehicle.year)
|
||||
|
|
@ -64,7 +66,7 @@ export default {
|
|||
selectedVehicle() {
|
||||
// this computed is only needed for the computed differentVehicleAlertBody text above
|
||||
return this.vehicles.find(
|
||||
({ vin }) => vin === this.selectedVehicleVin[this.selectedVehicleVin.length - 1]
|
||||
({ vin }) => vin === this.selectedVehicleVin
|
||||
);
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue