1
0
mirror of https://github.com/lexogrine/dota2-react-hud.git synced 2026-05-04 20:43:10 +02:00

HUD Overhaul

This commit is contained in:
Hubert Walczak
2021-09-27 18:37:25 +02:00
parent 01729977e7
commit e759e43425
316 changed files with 3828 additions and 196 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ export default class TeamBox extends React.Component<IProps> {
const right = map.dire;
const bo = (match && Number(match.matchType.substr(-1))) || 0;
const leftScore = players.filter(player => player.team_name === 'radiant').map(player => player.kills).reduce((a, b) => a + b, 0);
const rightScore = players.filter(player => player.team_name === 'dire').map(player => player.kills).reduce((a, b) => a + b, 0);
const leftScore = players.filter(player => player.team_name === 'dire').map(player => player.deaths).reduce((a, b) => a + b, 0);
const rightScore = players.filter(player => player.team_name === 'radiant').map(player => player.deaths).reduce((a, b) => a + b, 0);
return (
<>