From 929cae48a7ac38085ad509de47a5da82daa2ff4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BA=D1=82=D0=B5=D1=80=D0=B5=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BD=D0=B4=D1=80=D0=B5=D0=B9?= Date: Tue, 7 Dec 2021 15:17:12 +0300 Subject: [PATCH] fix(#1973): fix playernames in playlists events --- .../MatchSidePlaylists/components/EventButton/index.tsx | 6 ++---- .../MatchSidePlaylists/components/EventsList/index.tsx | 6 ------ src/requests/getMatchEvents.tsx | 8 ++++++++ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/features/MatchSidePlaylists/components/EventButton/index.tsx b/src/features/MatchSidePlaylists/components/EventButton/index.tsx index 6d0ca0dc..1959b6f9 100644 --- a/src/features/MatchSidePlaylists/components/EventButton/index.tsx +++ b/src/features/MatchSidePlaylists/components/EventButton/index.tsx @@ -4,7 +4,6 @@ import type { Event, Team } from 'requests' import { usePageParams } from 'hooks/usePageParams' -import type { PlayerPlaylistOption } from 'features/MatchPage/types' import { Name } from 'features/Name' import { T9n } from 'features/T9n' @@ -24,7 +23,6 @@ type Props = { event: Event, isHomeTeam: boolean, onClick: () => void, - player?: PlayerPlaylistOption, team?: Team, } @@ -34,7 +32,6 @@ export const EventButton = ({ event, isHomeTeam, onClick, - player, team, }: Props) => { const { sportType } = usePageParams() @@ -42,6 +39,7 @@ export const EventButton = ({ c: clearTime, l: lexica, p: playerId, + pl: playerName, sc1: score1, sc2: score2, t: teamId, @@ -51,7 +49,7 @@ export const EventButton = ({ const profileType = playerId ? ProfileTypes.PLAYERS : ProfileTypes.TEAMS - const nameObj = player || team + const nameObj = playerName || team return (