| changeset 129 | d48946d164c6 |
| parent 105 | 0a1d6560acac |
| child 168 | ea92f4fe783d |
--- a/client/src/misc/AuthenticatedRoute.js Tue Jul 25 19:11:26 2017 +0200 +++ b/client/src/misc/AuthenticatedRoute.js Fri Jul 28 19:40:35 2017 +0200 @@ -8,7 +8,7 @@ const { store } = props; const state = store.getState(); - const isAuthenticated = state.isAuthenticated; + const isAuthenticated = state.getIn(['authStatus', 'isAuthenticated']); if (isAuthenticated) { return <Route { ...props } component={ component } />;