diff --git a/README.md b/README.md index 18d57da..fde2c49 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ $ git clone https://github.com/turniere/turniere-frontend.git Afterwards you'll have to install the used libraries using following command: ``` -yarn install +$ yarn install ``` Afterwards you may simply run the developer version of the project: diff --git a/js/api.js b/js/api.js index 0db5c10..a4ab3d3 100644 --- a/js/api.js +++ b/js/api.js @@ -199,7 +199,7 @@ const reducer_userinfo = (state = defaultstate_userinfo, action) => { __store.dispatch({ type : actiontypes_userinfo.LOGIN_RESULT_SUCCESS, parameters : { - username : resp.data.data.username, + username : resp.data.username, } }); storeOptionalToken(resp); diff --git a/js/components/Login.js b/js/components/Login.js index 174677b..2d2b599 100644 --- a/js/components/Login.js +++ b/js/components/Login.js @@ -8,6 +8,8 @@ import { clearErrors } from '../api'; +import '../../static/css/errormessages.css'; + export function Login(props) { return ( @@ -31,14 +33,9 @@ class LoginErrorList extends React.Component { const { error, errorMessages } = this.props; if(error) { return ( -