Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 13, 2024
1 parent d3cd70f commit 6940288
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/app/auth/login/EmailPasswordForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ export function EmailPasswordForm({
setIsWorking(false);
const errorDetail = (await response.json()).detail;
let errorMsg = "Unknown error";
console.log("errorDetail", errorDetail);
if (typeof errorDetail === "object") {
if (typeof errorDetail === "object" && errorDetail.reason) {
errorMsg = errorDetail.reason;
} else if (errorDetail === "REGISTER_USER_ALREADY_EXISTS") {
errorMsg =
Expand Down

0 comments on commit 6940288

Please sign in to comment.