0
0
Fork 0

Change "game_code" commit to "gameCode" for consistency

This commit is contained in:
Oliver-Akins 2021-01-07 13:33:55 -07:00
parent 31d19bfe2d
commit cecfddfdee
2 changed files with 3 additions and 3 deletions

View file

@ -87,7 +87,7 @@ export default new Vuex.Store({
if (data.host) if (data.host)
state.is_host = data.host state.is_host = data.host
}, },
game_code(state, game_code) { gameCode(state, game_code) {
state.game_code = game_code; state.game_code = game_code;
}, },
view(state, target) { view(state, target) {

View file

@ -71,7 +71,7 @@ export default {
// Save the data in the store // Save the data in the store
this.$store.commit(`playerList`, data.players); 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`, { this.$store.commit(`player`, {
name: this.name, name: this.name,
host: false, host: false,
@ -89,7 +89,7 @@ export default {
// Update storage // Update storage
this.$store.commit(`playerList`, data.players); 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`, { this.$store.commit(`player`, {
name: this.name, name: this.name,
host: true, host: true,