diff --git a/src/actions/transformPlayerMatches.js b/src/actions/transformPlayerMatches.js index 76b626aded..111d10504e 100644 --- a/src/actions/transformPlayerMatches.js +++ b/src/actions/transformPlayerMatches.js @@ -9,7 +9,7 @@ export default function transformPlayerMatches(fields) { return response.map((match) => { let sameTeam = false; const found = Object.entries(match.heroes).find(([key, val]) => val.account_id && val.account_id.toString() === fields.included_account_id); - const partnerHero = {...found?.val, player_slot: found?.key}; + const partnerHero = {...found?.val, player_slot: Number(found?.key)}; if (isRadiant(partnerHero.player_slot) === isRadiant(match.player_slot)) { sameTeam = true; }