on registration failed msg
This commit is contained in:
@@ -43,8 +43,8 @@ const Register = () => {
|
||||
notify("success", "Registration Successful!");
|
||||
window.localStorage.setItem("user", JSON.stringify(data));
|
||||
navigate("/");
|
||||
} catch (err) {
|
||||
notify("error", "Registration Failed. Please try again.");
|
||||
} catch (error:any) {
|
||||
notify("error", error.response.data || "Registration Failed. Please try again.");
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user