Resolve user email naming if null.

This commit is contained in:
Patrick Fic
2021-10-25 10:46:30 -07:00
parent 29df140680
commit 6e6f3d3d3e

View File

@@ -51,7 +51,9 @@ export function EmailOverlayContainer({
const defaultEmailFrom = {
from: {
name: `${currentUser.displayName} @ ${bodyshop.shopname}`,
name: currentUser.displayName
? `${currentUser.displayName} @ ${bodyshop.shopname}`
: bodyshop.shopname,
address: EmailSettings.fromAddress,
},
ReplyTo: {