--- a/client/src/components/Login.js Tue Oct 09 19:07:47 2018 +0200
+++ b/client/src/components/Login.js Mon Oct 08 18:35:47 2018 +0200
@@ -50,7 +50,7 @@
renderNonFieldErrors(errorMessages) {
if (errorMessages && errorMessages.has('non_field_errors')) {
- const errors = errorMessages.get('non_field_errors');
+ const errors = errorMessages.non_field_errors;
return (
<div class="alert alert-danger" role="alert">
{ errors.map((message, key) =>
@@ -63,7 +63,7 @@
render() {
- // const errorMessages = this.props.login.get('errorMessages');
+ // const errorMessages = this.props.login.errorMessages;
return (
<div>
@@ -105,7 +105,7 @@
function mapStateToProps(state, props) {
return {
- login: state.get('login')
+ login: state.login
};
}