1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-21 11:54:02 +00:00

PM-31247 interchanged error message (#18644)

This commit is contained in:
bmbitwarden
2026-02-03 12:18:10 -05:00
committed by jaasen-livefront
parent d10adcee65
commit e694c2805f

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;
};
}