From d71df195c61f5f4731645ddd3463abda79dccf49 Mon Sep 17 00:00:00 2001 From: Howard Chung Date: Mon, 1 Jan 2024 15:36:06 -0800 Subject: [PATCH] Update index.jsx --- src/components/Matches/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Matches/index.jsx b/src/components/Matches/index.jsx index 393426d2ed..c935a901ba 100644 --- a/src/components/Matches/index.jsx +++ b/src/components/Matches/index.jsx @@ -91,13 +91,13 @@ const publicMatchesColumns = strings => [ { displayName: {strings.general_radiant}, field: 'radiant_team', - displayFn: (row, col, field) => (field || '').split(',').map(heroId => + displayFn: (row, col, field) => field?.map(heroId => (heroes[heroId] ? : null)), }, { displayName: {strings.general_dire}, field: 'dire_team', - displayFn: (row, col, field) => (field || '').split(',').map(heroId => + displayFn: (row, col, field) => field?.map(heroId => (heroes[heroId] ? : null)), }, ];