diff -r 7586b4a11c32 -r b2514a9bcd49 client/src/components/Navbar.js --- a/client/src/components/Navbar.js Tue Jun 20 12:11:57 2017 +0200 +++ b/client/src/components/Navbar.js Tue Jun 20 14:13:15 2017 +0200 @@ -1,4 +1,3 @@ - import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; @@ -36,9 +35,9 @@ renderLogin() { - if (this.props.currentUser) { + if (this.props.isAuthenticated) { return ( - + Settings Logout @@ -78,8 +77,8 @@ function mapStateToProps(state, props) { return { - isAuthenticated: state.get('isAuthenticated'), - currentUser: state.get('currentUser'), + isAuthenticated: state['isAuthenticated'], + currentUser: state['currentUser'], }; }