Change "game_code" commit to "gameCode" for consistency
This commit is contained in:
parent
31d19bfe2d
commit
cecfddfdee
2 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue