SSR-707 Change ?? to ||

This commit is contained in:
Josh Dassinger 2023-09-19 13:04:12 -05:00
parent cc413bf3bb
commit c6111f6d59

View file

@ -881,8 +881,8 @@ export const useMainStore = defineStore({
zipCode: customer.address?.zipCode zipCode: customer.address?.zipCode
}, },
emailAddress: contactInfo.emailAddress, emailAddress: contactInfo.emailAddress,
firstName: contactInfo.firstName ?? customer.firstName, firstName: contactInfo.firstName || customer.firstName,
lastName: contactInfo.lastName ?? customer.lastName, lastName: contactInfo.lastName || customer.lastName,
phoneNumber: contactInfo.phoneNumber, phoneNumber: contactInfo.phoneNumber,
optInSms: contactInfo.requestTextUpdates ?? false optInSms: contactInfo.requestTextUpdates ?? false
}, },