From b767f162ba498ecf9a9100c447819cb274c83f85 Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Mon, 3 Jul 2023 14:38:36 -0400 Subject: [PATCH] final refactor --- src/layouts/policy-vehicles/policy-vehicles.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layouts/policy-vehicles/policy-vehicles.vue b/src/layouts/policy-vehicles/policy-vehicles.vue index e847e94b..3466f5b9 100644 --- a/src/layouts/policy-vehicles/policy-vehicles.vue +++ b/src/layouts/policy-vehicles/policy-vehicles.vue @@ -196,12 +196,13 @@ export default { if (vehicle?.error === true) { this.mainStore.resetVehicleState(); this.displayGeneric = true; + return; } if (vehicle) { // save selected vehicle to the store - this.mainStore.updateVehicle(vehicle); + this.mainStore.updateVehicle(vehicle.data); this.displayGeneric = true; - + // get the style(s) associated with the selected YMM const styleOptions = await this.mainStore.getVehicleStyles( vehicle.data.year,