Merge pull request #768 from Safelite/bug/brydon/SSR-1389

Bug/brydon/ssr 1389
This commit is contained in:
michaela-brydon-safelite 2024-06-25 14:28:35 -04:00 committed by GitHub
commit 15eabdab77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -477,17 +477,20 @@ export const useMainStore = defineStore({
}, },
getVehicleModels() { getVehicleModels() {
const encodedMake = encodeURIComponent(this.order.vehicle.make);
return globalMethods.callHttpClient({ return globalMethods.callHttpClient({
method: endpoints.GetVehicleModels.method, method: endpoints.GetVehicleModels.method,
endpoint: `${endpoints.GetVehicleModels.url}/${this.order.vehicle.year}/${this.order.vehicle.make}`, endpoint: `${endpoints.GetVehicleModels.url}/${this.order.vehicle.year}/${encodedMake}`,
payload: {} payload: {}
}); });
}, },
getVehicleStyles() { getVehicleStyles() {
const encodedMake = encodeURIComponent(this.order.vehicle.make);
const encodedModel = encodeURIComponent(this.order.vehicle.model);
return globalMethods.callHttpClient({ return globalMethods.callHttpClient({
method: endpoints.GetVehicleStyles.method, method: endpoints.GetVehicleStyles.method,
endpoint: `${endpoints.GetVehicleStyles.url}/${this.order.vehicle.year}/${this.order.vehicle.make}/${this.order.vehicle.model}`, endpoint: `${endpoints.GetVehicleStyles.url}/${this.order.vehicle.year}/${encodedMake}/${encodedModel}`,
payload: {} payload: {}
}); });
}, },