Fix issues raised by bugbot

This commit is contained in:
Alex Humphries 2026-01-22 09:13:46 -05:00
parent 36771caca3
commit 7965fe9137
2 changed files with 2 additions and 2 deletions

View file

@ -282,7 +282,7 @@ export default {
return {
glassShop: this.getPreferredShopTitle,
contactPhone: contactPhone,
contactEmail: this.mainStore.contactInfo.emailAddress
contactEmail: this.mainStore.contactInfo.emailAddress ?? ''
}
}
},

View file

@ -1457,7 +1457,7 @@ export const useMainStore = defineStore({
emailAddress: contactInfo.emailAddress || customer.emailAddress,
firstName: contactInfo.firstName || customer.firstName,
lastName: contactInfo.lastName || customer.lastName,
homePhone: contactInfo.extension ? contactInfo.servicePhone + contactInfo.extension : contactInfo.homePhone,
homePhone: contactInfo.extension && contactInfo.homePhone ? contactInfo.homePhone + contactInfo.extension : contactInfo.homePhone,
servicePhone: contactInfo.servicePhone,
alternativePhone: contactInfo.alternativePhone,
isSmsOptIn: contactInfo.requestTextUpdates ?? false