This commit is contained in:
Kulbhushan Kaushik 2023-01-19 10:22:53 -05:00
parent 4ef0a83311
commit 006135f844
2 changed files with 5 additions and 6 deletions

View file

@ -225,8 +225,8 @@
damageState : this.mainStore.order.policy.damageState,
damageCity : this.mainStore.order.policy.damageCity,
isDamageGlassOnly : this.mainStore.order.policy.isDamageGlassOnly,
phoneNumber : this.mainStore.order.policy.phoneNumber,
email : this.mainStore.order.policy.email,
phoneNumber : this.mainStore.order.customer.phoneNumber,
email : this.mainStore.order.customer.emailAddress,
}
},
},

View file

@ -48,8 +48,6 @@ const getDefaultState = () => {
damageState: null,
damageCity: null,
isDamageGlassOnly: null,
phoneNumber: null,
email: null,
},
customer: {
address: {
@ -61,6 +59,7 @@ const getDefaultState = () => {
firstName: null,
lastName: null,
emailAddress: null,
phoneNumber: null,
},
serviceLocation: {
address: null,
@ -663,8 +662,8 @@ export const useMainStore = defineStore({
this.order.policy.damageState = welcomePageModel?.damageState;
this.order.policy.damageCity = welcomePageModel?.damageCity;
this.order.policy.isDamageGlassOnly = welcomePageModel?.isDamageGlassOnly;
this.order.policy.phoneNumber = welcomePageModel?.phoneNumber;
this.order.policy.email = welcomePageModel?.email;
this.order.customer.phoneNumber = welcomePageModel?.phoneNumber;
this.order.customer.emailAddress = welcomePageModel?.email;
},
savePartQuestionAnswers(partQuestionAnswersArray) {
// if part question answers have changed, reset subsequent question answers