1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

fix: show toast for other 400 errors (#12409)

This commit is contained in:
Ike
2024-12-13 16:10:07 -08:00
committed by GitHub
parent 5ecb6b5b1f
commit 407a571e31

View File

@@ -228,11 +228,14 @@ export class LoginComponent implements OnInit, OnDestroy {
message: this.i18nService.t("invalidMasterPassword"), message: this.i18nService.t("invalidMasterPassword"),
}, },
}); });
} else {
// Allow other 400 responses to be handled by toast
this.validationService.showError(error);
} }
break; break;
} }
default: { default: {
// Allow all other errors to be handled by toast // Allow all other error codes to be handled by toast
this.validationService.showError(error); this.validationService.showError(error);
} }
} }