CSR-923 Fix alert

This commit is contained in:
Katie 2022-11-03 16:27:16 -04:00
parent cf9adbb13b
commit e3b49488c8

View file

@ -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
);
},
},