Removing trailing commas

This commit is contained in:
brydon1 2023-07-14 10:46:59 -04:00
parent 242b947b14
commit 244b098dcf

View file

@ -65,6 +65,7 @@ const getDefaultState = () =>
} }
}, },
// FMG only has email // FMG only has email
// CSR-1358 and CSR-1359
customer: { customer: {
address: { address: {
streetAddress: null, streetAddress: null,
@ -92,11 +93,11 @@ const getDefaultState = () =>
otherParts: null, // TODO what is this? otherParts: null, // TODO what is this?
supportingItems: null, supportingItems: null,
vaps: null, vaps: null,
serverData: null // TODO what is this for and should it be added? serverData: null // TODO add
}, },
// Add parent account number from FMG // Add parent account number from FMG
payment: { payment: {
isInsurance: true, isInsurance: true, // TODO delete; irrelevant to ISS
insuranceCoverage: { insuranceCoverage: {
isVerified: false, isVerified: false,
coverageStatus: coverageStatuses.PENDING coverageStatus: coverageStatuses.PENDING
@ -121,8 +122,7 @@ const getDefaultState = () =>
}, },
referralNumber: null, referralNumber: null,
referralDate: null, referralDate: null,
referralCorrelationId: null, // TODO when is this set eon: null // TODO add
eon: null // TODO what is this
}, },
applicationUser: { applicationUser: {
experiments: [], experiments: [],
@ -717,7 +717,7 @@ export const useMainStore = defineStore({
experiments: applicationUser.experiments, experiments: applicationUser.experiments,
lastPage: applicationUser.lastPageVisited, lastPage: applicationUser.lastPageVisited,
pageData: applicationUser.pageData, pageData: applicationUser.pageData,
savedSessionId: applicationUser.savedSessionId, savedSessionId: applicationUser.savedSessionId
}, },
order: { order: {
// done // done
@ -735,8 +735,8 @@ export const useMainStore = defineStore({
city: vehicle.registration.city, city: vehicle.registration.city,
state: vehicle.registration.state, state: vehicle.registration.state,
zipCode: vehicle.registration.zipCode, zipCode: vehicle.registration.zipCode,
licensePlateNumber: vehicle.registration.licensePlate, licensePlateNumber: vehicle.registration.licensePlate
}, }
}, },
// done // done
damage: { damage: {
@ -745,14 +745,14 @@ export const useMainStore = defineStore({
isRepair: damage.isRepair, isRepair: damage.isRepair,
partQuestionAnswers: order.damage.partQuestionAnswers, partQuestionAnswers: order.damage.partQuestionAnswers,
moldingQuestionAnswers: order.damage.moldingQuestionAnswers, moldingQuestionAnswers: order.damage.moldingQuestionAnswers,
capabilityQuestionAnswers: order.damage.capabilityQuestionAnswers, capabilityQuestionAnswers: order.damage.capabilityQuestionAnswers
}, },
customer: { customer: {
emailAddress: order.customer.emailAddress, emailAddress: order.contactInfo.emailAddress ?? order.customer.emailAddress,
firstName: order.customer.firstName, firstName: order.contactInfo.firstName ?? order.customer.firstName,
lastName: order.customer.lastName, lastName: order.contactInfo.lastName ?? order.customer.lastName,
phoneNumber: order.customer.phone, // TODO contact info or customer? phoneNumber: order.contactInfo.phoneNumber ?? order.customer.phoneNumber, // TODO contact info or customer?
optInSms: order.contactInfo.requestTextUpdates optInSms: order.contactInfo.requestTextUpdates ?? false
}, },
lineItems: { lineItems: {
glassParts: lineItems.glassParts, glassParts: lineItems.glassParts,