fix: -rm welcome notif
This commit is contained in:
@@ -56,7 +56,6 @@ const Login = () => {
|
||||
{ withCredentials: true }
|
||||
);
|
||||
dispatch({ type: "LOGIN", payload: data });
|
||||
notify("success", t('login.welcome_notification'));
|
||||
window.localStorage.setItem("user", JSON.stringify(data));
|
||||
navigate("/");
|
||||
} catch (err: any) {
|
||||
|
||||
@@ -49,7 +49,6 @@ const Register = () => {
|
||||
try {
|
||||
const { data } = await axios.post(`${apiUrl}/auth/register`, { email, password });
|
||||
dispatch({ type: "LOGIN", payload: data });
|
||||
notify("success", t('register.welcome_notification'));
|
||||
window.localStorage.setItem("user", JSON.stringify(data));
|
||||
navigate("/");
|
||||
} catch (error: any) {
|
||||
|
||||
Reference in New Issue
Block a user