Redirige on index
This commit is contained in:
parent
7aef3f5343
commit
0b0c3104b7
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export default function Usernav({ isOpen, toggle }: { isOpen: boolean; toggle: (
|
|||
|
||||
async function handleLogout() {
|
||||
cookies.remove('token');
|
||||
router.refresh();
|
||||
router.replace('/');
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Reference in a new issue