diff options
author | Victor Chabbert <chabbertvi@eisti.eu> | 2016-12-20 15:41:22 +0100 |
---|---|---|
committer | Victor Chabbert <chabbertvi@eisti.eu> | 2016-12-20 15:41:22 +0100 |
commit | f153d3f42f2cf99fc7048c306c50cb766e4c9d01 (patch) | |
tree | 26e51e27e836d95147c079a64507992f55b84863 /src | |
parent | Disable stomp debug in production (diff) | |
download | seven-wonders-f153d3f42f2cf99fc7048c306c50cb766e4c9d01.tar.gz seven-wonders-f153d3f42f2cf99fc7048c306c50cb766e4c9d01.tar.bz2 seven-wonders-f153d3f42f2cf99fc7048c306c50cb766e4c9d01.zip |
Fix create game with undefined value
Diffstat (limited to 'src')
-rw-r--r-- | src/main/js/src/containers/App/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/js/src/containers/App/index.js b/src/main/js/src/containers/App/index.js index 3b7e8fbf..70f99b6b 100644 --- a/src/main/js/src/containers/App/index.js +++ b/src/main/js/src/containers/App/index.js @@ -30,7 +30,9 @@ class App extends Component { createGame = (e) => { e.preventDefault() - this.props.createGame(this._gameName) + if (this._gameName !== undefined) { + this.props.createGame(this._gameName) + } } render() { |