diff --git a/src/hooks/auth.js b/src/hooks/auth.js index 7354a65..1b34a6a 100644 --- a/src/hooks/auth.js +++ b/src/hooks/auth.js @@ -92,7 +92,7 @@ export const useAuth = ({ middleware, redirectIfAuthenticated } = {}) => { if (! error) { await axios .post('/logout') - .then(() => mutate()) + .then(() => mutate()) } window.location.pathname = '/login'