summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2016-12-20 15:41:22 +0100
committerVictor Chabbert <chabbertvi@eisti.eu>2016-12-20 15:41:22 +0100
commitf153d3f42f2cf99fc7048c306c50cb766e4c9d01 (patch)
tree26e51e27e836d95147c079a64507992f55b84863
parentDisable stomp debug in production (diff)
downloadseven-wonders-f153d3f42f2cf99fc7048c306c50cb766e4c9d01.tar.gz
seven-wonders-f153d3f42f2cf99fc7048c306c50cb766e4c9d01.tar.bz2
seven-wonders-f153d3f42f2cf99fc7048c306c50cb766e4c9d01.zip
Fix create game with undefined value
-rw-r--r--src/main/js/src/containers/App/index.js4
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() {
bgstack15