1
0
mirror of https://github.com/lexogrine/dota2-react-hud.git synced 2026-05-04 12:33:11 +02:00

fixed missing heroes, items and team logo error

This commit is contained in:
Hubert Walczak
2022-07-08 11:19:50 +02:00
parent 31fa86d7c3
commit a0d2d68ba7
898 changed files with 15 additions and 17 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const ObservedPlayer = ({ players, player, team, show}: { show: boolean, player:
<div className="team_box">
<div className={`${player.team_name} team_bar`}></div>
<div className="team_logo">
{team && team.id ? <img src={`${apiUrl}api/teams/logo/${team.id}`} /> : null}
{team && team.id && team.logo ? <img src={`${apiUrl}api/teams/logo/${team.id}`} /> : null}
</div>
</div>
<div className="username shadowed-text">{player.name} { player.kills ? <div className="player_kills">