summaryrefslogtreecommitdiff
path: root/frontend/src/containers/home.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-01-21 12:30:07 +0100
committerVictor Chabbert <chabbertvi@eisti.eu>2017-01-21 12:30:07 +0100
commit267a122951a1959dcbd111a77dccdcb78eccefa4 (patch)
treebae29797c28dc8c1bb87f983359e669ef5887e07 /frontend/src/containers/home.js
parentMove babel polyfill to dev dependencies (diff)
downloadseven-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.js6
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)
bgstack15