Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Quick fix for loging out #2
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Oct 21, 2016
1 parent c3222c7 commit c5eac0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
export const getRoutes = (store) => {
const authRequired = (nextState, replace, callback) => {
if( !localStorage.isLogged ){
replace('/login');
store.dispatch(push('/login'));
callback();
}else{
callback();
Expand Down

0 comments on commit c5eac0e

Please sign in to comment.