fixed typo
This commit was merged in pull request #11.
This commit is contained in:
@@ -45,7 +45,7 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
|
|||||||
// cleaning up listeners
|
// cleaning up listeners
|
||||||
return () => {
|
return () => {
|
||||||
clearInterval(checkInactivity)
|
clearInterval(checkInactivity)
|
||||||
window.removeEventListener('mouseover', resetTime)
|
window.removeEventListener('mousemove', resetTime)
|
||||||
window.removeEventListener('keydown', resetTime)
|
window.removeEventListener('keydown', resetTime)
|
||||||
}
|
}
|
||||||
}, [pathname, lastActivityTime])
|
}, [pathname, lastActivityTime])
|
||||||
|
|||||||
Reference in New Issue
Block a user