odota / web

React web interface for the OpenDota platform
https://www.opendota.com
MIT License
1.09k stars 391 forks source link

fix universal hero base attack #3114

Closed ThePeregrinus closed 1 year ago

ThePeregrinus commented 1 year ago

Universal heroes have NaN base attack image

It happens because primaryAttrValue retuns underfined if universal hero(there is no base_all property in heroes.json) image

screenshot after fix image