1
0
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:
Dave
2025-09-04 09:47:39 -04:00
committed by GitHub
parent 66f5700a75
commit 866f56f2d5

View File

@@ -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"),