summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-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