diff --git a/src/store/index.js b/src/store/index.js index 4129a5ad..a54c1fa1 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1245,10 +1245,12 @@ export const useMainStore = defineStore({ }, setVehicle() { + const encodedMake = encodeURIComponent(this.order.vehicle.make); + const encodedModel = encodeURIComponent(this.order.vehicle.model); return globalMethods .callHttpClient({ method: endpoints.GetVehicle.method, - endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${this.order.vehicle.make}/${this.order.vehicle.model}/${this.order.vehicle.style}`, + endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${encodedMake}/${encodedModel}/${this.order.vehicle.style}`, payload: {} }) .then((response) => {