diff --git a/src/RouteChangeTracker.js b/src/RouteChangeTracker.js index 3271ec8..d7d1809 100644 --- a/src/RouteChangeTracker.js +++ b/src/RouteChangeTracker.js @@ -1,6 +1,6 @@ import { withRouter } from "react-router-dom"; -export default withRouter(function RouteChangeTracker({ history, logEvent }) { +export default withRouter(function RouteChangeTracker({ history }) { history.listen((location, action) => { if (location.pathname === "/login") { document.body.style.overflow = "hidden";