diff --git a/src/components/Player.vue b/src/components/Player.vue index 892cda7..29ae30e 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -807,7 +807,7 @@ li.move:not(.from) .player .overlay svg.move { .player.dead .night em { color: #ddd; - background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, gray 100%) ; + background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, gray 100%); } /***** Reminder token *****/ diff --git a/src/store/modules/session.js b/src/store/modules/session.js index 4be6f4e..d36545a 100644 --- a/src/store/modules/session.js +++ b/src/store/modules/session.js @@ -32,11 +32,11 @@ const mutations = { setPlayerCount: set("playerCount"), setVotingSpeed: set("votingSpeed"), claimSeat: set("claimedSeat"), - nomination(state, { nomination, votes, votingSpeed } = {}) { + nomination(state, { nomination, votes, votingSpeed, lockedVote } = {}) { state.nomination = nomination || false; state.votes = votes || []; state.votingSpeed = votingSpeed || state.votingSpeed; - state.lockedVote = 0; + state.lockedVote = lockedVote || 0; }, /** * Store a vote with and without syncing it to the live session. diff --git a/src/store/socket.js b/src/store/socket.js index 1d6f62b..af22ec6 100644 --- a/src/store/socket.js +++ b/src/store/socket.js @@ -183,6 +183,7 @@ class LiveSession { gamestate: this._gamestate, nomination: session.nomination, votingSpeed: session.votingSpeed, + lockedVote: session.lockedVote, ...(session.nomination ? { votes: session.votes } : {}) }); } @@ -194,11 +195,12 @@ class LiveSession { */ _updateGamestate(data) { if (!this._isSpectator) return; - const { gamestate, nomination, votingSpeed, votes } = data; + const { gamestate, nomination, votingSpeed, votes, lockedVote } = data; this._store.commit("session/nomination", { nomination, votes, - votingSpeed + votingSpeed, + lockedVote }); const players = this._store.state.players.players; // adjust number of players