diff options
author | Victor Chabbert <chabbertvi@eisti.eu> | 2017-01-21 12:30:07 +0100 |
---|---|---|
committer | Victor Chabbert <chabbertvi@eisti.eu> | 2017-01-21 12:30:07 +0100 |
commit | 267a122951a1959dcbd111a77dccdcb78eccefa4 (patch) | |
tree | bae29797c28dc8c1bb87f983359e669ef5887e07 /frontend/src/containers/home.js | |
parent | Move babel polyfill to dev dependencies (diff) | |
download | seven-wonders-267a122951a1959dcbd111a77dccdcb78eccefa4.tar.gz seven-wonders-267a122951a1959dcbd111a77dccdcb78eccefa4.tar.bz2 seven-wonders-267a122951a1959dcbd111a77dccdcb78eccefa4.zip |
Better implementation of username choice
Diffstat (limited to 'frontend/src/containers/home.js')
-rw-r--r-- | frontend/src/containers/home.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/containers/home.js b/frontend/src/containers/home.js index ce1b69fd..cc35f2bc 100644 --- a/frontend/src/containers/home.js +++ b/frontend/src/containers/home.js @@ -7,7 +7,7 @@ class HomePage extends Component { play = (e) => { e.preventDefault() if (this._username !== undefined) { - this.props.enterGame(this._username) + this.props.chooseUsername(this._username) } } @@ -32,9 +32,9 @@ const mapStateToProps = (state) => ({ }) -import { actions } from '../redux/game' +import { actions } from '../redux/user' const mapDispatchToProps = { - enterGame: actions.enterGame + chooseUsername: actions.chooseUsername } export default connect(mapStateToProps, mapDispatchToProps)(HomePage) |