mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-28 06:17:28 +00:00
fix: check if player has perks in live game tab (riot api invalid data)
This commit is contained in:
parent
02996c8883
commit
8b73271823
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class LiveMatchTransformer extends MatchTransformer {
|
|||
|
||||
// Perks
|
||||
for (const participant of match.participants) {
|
||||
participant.runes = super.getPerksImages(participant.perks.perkIds[0], participant.perks.perkSubStyle)
|
||||
participant.runes = participant.perks ? super.getPerksImages(participant.perks.perkIds[0], participant.perks.perkSubStyle) : {}
|
||||
}
|
||||
|
||||
const requestsParticipants = match.participants.map(p => this._getPlayerDatq(p, region))
|
||||
|
|
|
|||
Loading…
Reference in a new issue