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
},
emailAddress: contactInfo.emailAddress,
firstName: contactInfo.firstName ?? customer.firstName,
lastName: contactInfo.lastName ?? customer.lastName,
firstName: contactInfo.firstName || customer.firstName,
lastName: contactInfo.lastName || customer.lastName,
phoneNumber: contactInfo.phoneNumber,
optInSms: contactInfo.requestTextUpdates ?? false
},