fix(summoner-overview): open mutliple match details

This commit is contained in:
Valentin Kaelin 2022-02-01 23:43:42 +01:00
parent 98325bedc3
commit db1ee7ead7

View file

@ -28,11 +28,11 @@ export const mutations = {
}
}
const index = state.matches.findIndex(m => m.gameId === matchDetails.gameId)
const index = state.matches.findIndex(m => m.matchId === matchDetails.matchId)
Vue.set(state.matches, index, matchDetails)
},
MATCH_RANKS_FOUND(state, { gameId, ranksByPlayer }) {
const match = state.matches.find(m => m.gameId === gameId)
MATCH_RANKS_FOUND(state, { matchId, ranksByPlayer }) {
const match = state.matches.find(m => m.matchId === matchId)
for (const player of match.blueTeam.players) {
const ranks = ranksByPlayer[player.id]