This commit is contained in:
ritschwumm 2023-09-11 20:19:10 -06:00 committed by GitHub
commit e786031372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ function convertAddressTokens(tokens: AddressToken[]) {
// http://tools.ietf.org/html/rfc2822#appendix-A.1.3
if (isGroup) {
addressObjects.push({
name: texts.length === 0 ? undefined : texts.join(' '),
...(texts.length === 0 ? {} : { name: texts.join(' ') }),
group: groups.length > 0 ? addressparser(groups.join(',')) : [],
});
} else {