Commit f90d5b94 authored by Mahmoud Aglan's avatar Mahmoud Aglan

lol

parent f0ad25cd
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -39,7 +39,7 @@ export default function LoginPage() { ...@@ -39,7 +39,7 @@ export default function LoginPage() {
} else { } else {
data = await register(username, email, password); 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) { } catch (err) {
setError(err.message || "Something went wrong"); setError(err.message || "Something went wrong");
} finally { } 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