Skip to content

Commit

Permalink
fix: show toast for other 400 errors (#12409)
Browse files Browse the repository at this point in the history
  • Loading branch information
ike-kottlowski authored Dec 14, 2024
1 parent 5ecb6b5 commit 407a571
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/auth/src/angular/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,14 @@ export class LoginComponent implements OnInit, OnDestroy {
message: this.i18nService.t("invalidMasterPassword"),
},
});
} else {
// Allow other 400 responses to be handled by toast
this.validationService.showError(error);
}
break;
}
default: {
// Allow all other errors to be handled by toast
// Allow all other error codes to be handled by toast
this.validationService.showError(error);
}
}
Expand Down

0 comments on commit 407a571

Please sign in to comment.