feat: show error if regristration fails

This commit is contained in:
karishmas6
2024-11-29 17:05:35 +05:30
parent e195f9e7da
commit 3e1794bf49

View File

@@ -44,7 +44,7 @@ const Register = () => {
window.localStorage.setItem("user", JSON.stringify(data));
navigate("/");
} catch (error:any) {
notify("error", error.response.data || "Registration Failed. Please try again.");
notify("error", `Registration Failed. Please try again. ${error.response.data}`);
setLoading(false);
}
};