From cc9311de211875f0711ae3086c0dff6b84e39af8 Mon Sep 17 00:00:00 2001 From: Kroell Date: Thu, 12 Jan 2023 11:36:58 -0500 Subject: [PATCH] change to calling lookupVinByPlate method --- src/layouts/license-plate-lookup/license-plate-lookup.vue | 3 +-- src/store/index.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index e99fe78f..a5d3a422 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -33,7 +33,6 @@ import { computed } from 'vue'; import { endpoints } from '@/constants/endpoints'; import vehicleLookupAlertTypes from '@/constants/vehicle-lookup-alert-types'; -import globalMethods from '@/global-methods'; import { fetchCmsContentForPage } from '@/helpers/cms-content-helper'; import { settleAllPromises } from '@/helpers/layout-helper'; import { useMainStore } from '@/store'; @@ -116,7 +115,7 @@ export default { this.resetActiveAlert(); // NOTE: If form is not valid, this method is not called when 'Continue' button is clicked - const vehicleLookupResponse = await this.lookupVinByPlate(this.licensePlate); + const vehicleLookupResponse = await this.mainStore.lookupVinByPlate(this.licensePlate); if (vehicleLookupResponse.error) { this.activeVehicleLookupAlertType = vehicleLookupAlertTypes.NOT_FOUND; diff --git a/src/store/index.js b/src/store/index.js index d112db60..d5f1bbf3 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -238,7 +238,7 @@ export const useMainStore = defineStore({ method: endpoints.LookupVinByPlate.method, endpoint: endpoints.LookupVinByPlate.url, payload: { - licensePlate, + licensePlate: licensePlate, licenseState: "IL" // hard coded until Welcome Page is complete and license state can be pulled from store }, });