diff --git a/client/src/components/NavBar.js b/client/src/components/NavBar.js
index e13cb9827..b590ef192 100644
--- a/client/src/components/NavBar.js
+++ b/client/src/components/NavBar.js
@@ -61,6 +61,14 @@ class NavBar extends Component {
}
);
*/
+ const userStored = localStorage.getItem('user');
+ console.log(userStored);
+
+ if (userStored !== null && userStored !== undefined && userStored !== 'undefined') {
+ const user = JSON.parse(userStored);
+ const authId = user.sub;
+ this.setState({ authId: authId });
+ }
}
render() {
const { classes } = this.props;
diff --git a/client/src/index.js b/client/src/index.js
index 32458904c..9c47566b0 100644
--- a/client/src/index.js
+++ b/client/src/index.js
@@ -2,10 +2,12 @@ import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
-import {createStore} from 'redux';
-import {Provider} from 'reaxt-redux';
-import rootReducer from './reducers/rootReducer';
+//import {createStore} from 'redux';
+//import {Provider} from 'reaxt-redux';
+//import rootReducer from './reducers/rootReducer';
-const store = createStore(rootReducer);
+//const store = createStore(rootReducer);
-ReactDOM.render(, document.getElementById('root'));
+//ReactDOM.render(, document.getElementById('root'));
+
+ReactDOM.render(, document.getElementById('root'));