bug: don't break if game.players is null

This commit is contained in:
Settel 2022-08-11 18:39:09 +02:00
parent b25adb6aa6
commit 95db3c83aa

View File

@ -17,6 +17,7 @@ export const usePlayersStore = defineStore('PlayersStore', {
},
actions: {
setPlayers(players: Players): void {
players = players || []
this.players.splice(0, this.players.length, ...players)
},
},