diff -r 1f340f3597a8 -r ea92f4fe783d client/src/components/Settings.js --- a/client/src/components/Settings.js Tue Oct 09 19:07:47 2018 +0200 +++ b/client/src/components/Settings.js Mon Oct 08 18:35:47 2018 +0200 @@ -5,10 +5,12 @@ import Navbar from './Navbar'; import * as userActions from '../actions/userActions'; import './Settings.css'; +import { getCurrentUser } from '../selectors/authSelectors'; class Settings extends Component { - updateSettings = () => { + updateSettings = (e) => { + e.preventDefault(); const username = this.props.currentUser.username; const firstname = this.firstname.value; const lastname = this.lastname.value; @@ -58,7 +60,7 @@ function mapStateToProps(state, props) { return { - currentUser: state.getIn(['authStatus', 'currentUser']), + currentUser: getCurrentUser(state), }; }