From 0ea39f206fc93ea0f7f7926bcc0df5fcf8980cf6 Mon Sep 17 00:00:00 2001 From: Michaela Brydon Date: Thu, 27 Jun 2024 13:36:24 -0400 Subject: [PATCH] Forgot an endpoint --- src/store/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 8bf6a263..2fe18fae 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1246,10 +1246,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) => {