Unverified Commit b8a9783d authored by Athurg Gooth's avatar Athurg Gooth Committed by GitHub

fix: signin error notification is not shown (#2908)

fix signin error notification is not shown
parent 82e72813
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";
......@@ -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();
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment