Skip to content

Commit

Permalink
Fix ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
kamarmack committed Dec 9, 2023
1 parent bedebe7 commit a547aef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/hooks/useAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ export const useAuth = (
console.log('Found destination, redirecting to: ', dest);
localStorage.removeItem('dest');
return void router.replace(dest);
} else {
console.log('No destination found, redirecting to /');
return void router.replace('/');
}
console.log('No destination found, redirecting to /');
return void router.replace('/');
}

return void 0;
} catch (err) {
console.error('Error signing in: ', err);
}
Expand Down

0 comments on commit a547aef

Please sign in to comment.