From 866f56f2d5015e5642f56656a8df0c6daae25bd1 Mon Sep 17 00:00:00 2001 From: Dave <3836813+enmande@users.noreply.github.com> Date: Thu, 4 Sep 2025 09:47:39 -0400 Subject: [PATCH] fix(login-component): [PM-24151] 'Message' property may be null or undefined. (#16225) --- libs/auth/src/angular/login/login.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/auth/src/angular/login/login.component.ts b/libs/auth/src/angular/login/login.component.ts index 546bb13e88..b694168223 100644 --- a/libs/auth/src/angular/login/login.component.ts +++ b/libs/auth/src/angular/login/login.component.ts @@ -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"),