This commit is contained in:
Kulbhushan Kaushik 2022-09-30 08:13:51 -04:00
parent 107dace02c
commit 7408912c2e

View file

@ -27,37 +27,9 @@ const getDefaultState = () => {
lastName: null,
},
},
serviceLocation: {
address: null,
city: null,
state: null,
zipCode: null,
},
customer: {
emailAddress: null,
},
damage: {
isRepair: null,
numberOfChips: null,
glassToReplace: null,
partQuestionAnswers: null,
moldingQuestionAnswers: null,
capabilityQuestionAnswers: null
},
lineItems: {
glassParts: null
},
payment: {
isInsurance: null,
insuranceCoverage: {
isVerified: null
}
},
referralNumber: null,
referralDate: null,
referralCorrelationId: null,
accountNumber: 0,
eon: null
},
applicationUser: {
eventBus: [],
@ -98,7 +70,8 @@ export const useMainStore = defineStore({
},
populateInitialState()
{
if(!localStorage.getItem('main')) {
const storeId = 'main';
if(!localStorage.getItem(storeId)) {
this.$state = state;
}