mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix(summoner-overview): open mutliple match details
This commit is contained in:
parent
98325bedc3
commit
db1ee7ead7
1 changed files with 6 additions and 6 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue