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 (