mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
fix(login-component): [PM-24151] 'Message' property may be null or undefined. (#16225)
This commit is contained in:
@@ -266,7 +266,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
||||
if (error instanceof ErrorResponse) {
|
||||
switch (error.statusCode) {
|
||||
case HttpStatusCode.BadRequest: {
|
||||
if (error.message.toLowerCase().includes("username or password is incorrect")) {
|
||||
if (error.message?.toLowerCase().includes("username or password is incorrect")) {
|
||||
this.formGroup.controls.masterPassword.setErrors({
|
||||
error: {
|
||||
message: this.i18nService.t("invalidMasterPassword"),
|
||||
|
||||
Reference in New Issue
Block a user