Skip to content

Commit

Permalink
fix: signin error notification is not shown (#2908)
Browse files Browse the repository at this point in the history
fix signin error notification is not shown
  • Loading branch information
athurg authored Feb 4, 2024
1 parent 82e7281 commit b8a9783
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/pages/SignIn.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Button, Checkbox, Divider, Input } from "@mui/joy";
import { ClientError } from "nice-grpc-web";
import { useEffect, useState } from "react";
import { toast } from "react-hot-toast";
import { Link } from "react-router-dom";
Expand Down Expand Up @@ -85,7 +86,7 @@ const SignIn = () => {
}
} catch (error: any) {
console.error(error);
toast.error(error.response.data.message || t("message.login-failed"));
toast.error((error as ClientError).details || t("message.login-failed"));
}
actionBtnLoadingState.setFinish();
};
Expand Down

0 comments on commit b8a9783

Please sign in to comment.