Make sure to show only email when using current value as email (avoids getting duplicate name in fullEmail mode)

This commit is contained in:
hadi 2023-06-22 12:34:56 +02:00
parent a4e6a3bbd8
commit 0d60d3baf4

View File

@ -195,7 +195,7 @@ export class Et2EmailTag extends Et2Tag
if(!this.onlyEmail && Et2EmailTag.email_cache[this.value])
{
// Append current value as email, data may have work & home email in it
content = (Et2EmailTag.email_cache[this.value]?.n_fn || "") + " <" + this.value + ">"
content = (Et2EmailTag.email_cache[this.value]?.n_fn || "") + " <" + (this.splitEmail(this.value)?.email || this.value) + ">"
}
if (this.onlyEmail)
{