diff --git a/src/store/index.js b/src/store/index.js index d1b7f508..96cda682 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -720,6 +720,7 @@ export const useMainStore = defineStore({ savedSessionId: applicationUser.savedSessionId, }, order: { + // done vehicle: { carId: vehicle.carId, year: vehicle.year, @@ -737,9 +738,7 @@ export const useMainStore = defineStore({ licensePlateNumber: vehicle.registration.licensePlate, }, }, - customer: { - emailAddress: order.customer.emailAddress, - }, + // done damage: { numberOfChips: damage.numberOfChips, glassToReplace: newGlassToReplace, @@ -748,6 +747,13 @@ export const useMainStore = defineStore({ moldingQuestionAnswers: order.damage.moldingQuestionAnswers, capabilityQuestionAnswers: order.damage.capabilityQuestionAnswers, }, + customer: { + emailAddress: order.customer.emailAddress, + firstName: order.customer.firstName, + lastName: order.customer.lastName, + phoneNumber: order.customer.phone, // TODO contact info or customer? + optInSms: order.contactInfo.requestTextUpdates + }, lineItems: { glassParts: lineItems.glassParts, supportingItems: lineItems.supportingItems,