From c81725d4ebcd21200dddb33968af59108d8b6644 Mon Sep 17 00:00:00 2001 From: Kroell Date: Sat, 18 Feb 2023 12:00:28 -0500 Subject: [PATCH 1/2] pre-populate state entered on policy-holder-details page --- src/layouts/license-plate-lookup/license-plate-lookup.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index 62687a08..f9b6ab64 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -109,7 +109,7 @@ export default { activeVehicleLookupAlertType: null, vehicleFromLookup: null, licensePlate: null, - licenseState: null, + licenseState: useMainStore().order.customer.address.state, displayVinNotFoundAlert: false, displayMatchedDifferentVehicleAlert: false, previouslyEnteredCarId: "", @@ -198,7 +198,6 @@ export default { registrationInfo: { licensePlate: this.licensePlate, state: this.licenseState, - zipCode: useMainStore().vehicle.registration.zipCode, }, }, false From ea2f1d4dadf19d6ad9ae38dd7e7ee8d5d672229a Mon Sep 17 00:00:00 2001 From: Kroell Date: Sat, 18 Feb 2023 12:01:46 -0500 Subject: [PATCH 2/2] zip code field no longer exists on license-plate-lookup, value not saved to store --- src/store/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index db172dde..961a0835 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -940,8 +940,7 @@ export const useMainStore = defineStore({ if ( registrationInfo?.licensePlate !== this.order.vehicle.registration?.licensePlate || - registrationInfo?.state !== this.order.vehicle.registration?.state || - registrationInfo?.zipCode !== this.order.vehicle.registration?.zipCode + registrationInfo?.state !== this.order.vehicle.registration?.state ) { this.resetRegistrationAndDependencies();