Skip to content

Commit

Permalink
logout redirect fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sethwalker1 committed Jul 18, 2021
1 parent cfbebed commit 4c67bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Todo = (props) => {

const onLogout = () => {
logout()
window.location.href = "http://localhost:3000/login"
router.push('/login')
}

if (list === null) {
Expand Down

1 comment on commit 4c67bb5

@vercel
Copy link

@vercel vercel bot commented on 4c67bb5 Jul 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.