1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 03:33:30 +00:00

PM-31247 interchanged error message (#18644)

This commit is contained in:
bmbitwarden
2026-02-03 12:18:10 -05:00
committed by GitHub
parent 11e6b434e3
commit 2d85b62beb

View File

@@ -312,7 +312,7 @@ export class SendDetailsComponent implements OnInit {
const emails = control.value.split(",").map((e: string) => e.trim());
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
const invalidEmails = emails.filter((e: string) => e.length > 0 && !emailRegex.test(e));
return invalidEmails.length > 0 ? { email: true } : null;
return invalidEmails.length > 0 ? { multipleEmails: true } : null;
};
}