There was an error while loading. Please reload this page.
2 parents fc74594 + a1a0980 commit 1f94f35Copy full SHA for 1f94f35
src/js/ComplexProperties/EmailAddressCollection.ts
@@ -86,8 +86,8 @@ export class EmailAddressCollection extends ComplexPropertyCollection<EmailAddre
86
AddRange(emailOrSmtpAddresses: EmailAddress[] | string[]): void {
87
for (let address of emailOrSmtpAddresses) {
88
let emailAddress = <EmailAddress>address;
89
- if (typeof address === 'string') {
90
- address = new EmailAddress(<string>address);
+ if (typeof emailAddress === 'string') {
+ emailAddress = new EmailAddress(<string>address);
91
}
92
this.InternalAdd(emailAddress);
93
0 commit comments