diff --git a/web/src/store/index.js b/web/src/store/index.js index 1212916..b6a80c3 100644 --- a/web/src/store/index.js +++ b/web/src/store/index.js @@ -87,7 +87,7 @@ export default new Vuex.Store({ if (data.host) state.is_host = data.host }, - game_code(state, game_code) { + gameCode(state, game_code) { state.game_code = game_code; }, view(state, target) { diff --git a/web/src/views/CreateJoin.vue b/web/src/views/CreateJoin.vue index fd92990..92d4ea3 100644 --- a/web/src/views/CreateJoin.vue +++ b/web/src/views/CreateJoin.vue @@ -71,7 +71,7 @@ export default { // Save the data in the store this.$store.commit(`playerList`, data.players); - this.$store.commit(`game_code`, this.game_code); + this.$store.commit(`gameCode`, this.game_code); this.$store.commit(`player`, { name: this.name, host: false, @@ -89,7 +89,7 @@ export default { // Update storage this.$store.commit(`playerList`, data.players); - this.$store.commit(`game_code`, data.game_code); + this.$store.commit(`gameCode`, data.game_code); this.$store.commit(`player`, { name: this.name, host: true,