Fixed bug where we were displaying 'Continue with ...' when the user had selected one of several of the same type of vehicle as the one entered on the YMM pages

This commit is contained in:
Leah Schumann 2022-06-30 08:39:11 -04:00
parent 1405c34ef6
commit e8dad4f954

View file

@ -223,7 +223,11 @@ export default {
handler() {
// does this vehicle match the previously selected carId?
this.isCarIdDifferent = this.selectedVehicle.vehicle.carId !== store.getters.vehicle.carId;
this.$refs.funnelFooter.updateButtonText(`Continue with ${this.selectedVehicle.vehicle.year} ${this.selectedVehicle.vehicle.make} ${this.selectedVehicle.vehicle.model}`);
if (this.isCarIdDifferent) {
this.$refs.funnelFooter.updateButtonText(`Continue with ${this.selectedVehicle.vehicle.year} ${this.selectedVehicle.vehicle.make} ${this.selectedVehicle.vehicle.model}`);
} else {
this.$refs.funnelFooter.updateButtonText(this.getCmsContent("FunnelFooterWidget", "ForwardButtonText"));
}
},
deep: true
},