Skip to content

Commit

Permalink
small format fix
Browse files Browse the repository at this point in the history
A couple of spacing / lines I didn't mean to change
  • Loading branch information
laurenbrissette committed Nov 3, 2024
1 parent 47ccbbe commit bb22a18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/context/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,16 @@ export const AuthProvider = ({ children }: any) => {
password: password,
})
.then((response) => {
router.push('/');
parseUser(response);
router.push('/');
})
.catch((error) => {
setError(error);

if (error.status === 401) {
// handle password was incorrect
}

if (error.status === 500) {
register(email, password);
}
Expand Down

0 comments on commit bb22a18

Please sign in to comment.