Closed ClaraSmyth closed 1 year ago
Halfway wanna classify this as a wontfix
but if https://github.com/RiotGames/developer-relations/issues/724 doesn't get resolved by next weekend, will add a workaround.
v2.0.2 is being released, and this has been addressed.
Describe the bug There is an error with the match api where the players raw data sometimes returns with a perk style of 0 which causes shieldbow to throw an error.
There is an open issue on the riot developer relations about this bug: https://github.com/RiotGames/developer-relations/issues/724
The issue occurs because data.style is 0 and it cannot find any rune tree with an id of 0 which causes an error on line 51 because this.tree is undefined. When this occurs the actual runes selection data is still intact its just the style property.
Line 50/51 of ./src/structures/api/Perks.ts
Console Error
To Reproduce
Expected behavior When fetching a match it should return a match but instead throws an error.
Desktop (please complete the following information):
Additional Context Im not sure how you would prefer to handle the error however I have fixed it on my own fork by just using the selected runes to get the rune tree and not use the style property at all.
Using this line