From 267a122951a1959dcbd111a77dccdcb78eccefa4 Mon Sep 17 00:00:00 2001 From: Victor Chabbert Date: Sat, 21 Jan 2017 12:30:07 +0100 Subject: Better implementation of username choice --- frontend/src/containers/home.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontend/src/containers/home.js') 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) -- cgit