Web.Components: utils: email: fixed pushing elems of arrays, if elems > 1

This commit is contained in:
Daniil Senkiv 2019-10-16 13:48:56 +03:00
parent aa3fb95127
commit b88de4c886

View File

@ -183,7 +183,7 @@ export const parseAddresses = (str, options = new EmailSettings()) => {
});
} else {
const checkOptionErrors = checkErrors(parsedAddress, options)
checkOptionErrors.length && errors.push(checkOptionErrors);
checkOptionErrors.length && errors.push(...checkOptionErrors);
}
resultEmails.push(