Commit f90d5b94 authored by Mahmoud Aglan's avatar Mahmoud Aglan

lol

parent f0ad25cd
This diff is collapsed.
......@@ -39,7 +39,7 @@ export default function LoginPage() {
} else {
data = await register(username, email, password);
}
dispatch({ type: "LOGIN", token: data.token, user: data.user });
dispatch({ type: "SET_AUTH", token: data.token, user: data.user });
} catch (err) {
setError(err.message || "Something went wrong");
} finally {
......
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