From 56e24d8ca0e43b966b7ffacd7ca7e2680e181997 Mon Sep 17 00:00:00 2001 From: Howard Chung Date: Mon, 11 Mar 2024 23:32:40 -0700 Subject: [PATCH] Update transformPlayerMatches.js --- src/actions/transformPlayerMatches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }