change to calling lookupVinByPlate method
This commit is contained in:
parent
69e1348e7d
commit
cc9311de21
2 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue