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