diff --git a/src/hooks/auth.js b/src/hooks/auth.js index bf13ab3..333cf7b 100644 --- a/src/hooks/auth.js +++ b/src/hooks/auth.js @@ -11,7 +11,7 @@ export const useAuth = ({ middleware, redirectIfAuthenticated } = {}) => { .get('/api/user') .then(res => res.data) .catch(error => { - if (error.response.status != 409) throw error + if (error.response.status !== 409) throw error router.push('/verify-email') }),