feat(ott-2712): pr fix

keep-around/b214ac7012ef42593bee62c207888a2593bc5a38
Rita 3 years ago
parent fce6b54dce
commit cf70e3db51
  1. 5
      src/features/MatchSidePlaylists/components/EventsList/index.tsx

@ -2,6 +2,8 @@ import map from 'lodash/map'
import type { Events, MatchInfo } from 'requests'
import { isLffClient } from 'config/clients'
import { T9n } from 'features/T9n'
import type {
EventPlaylistOption,
@ -60,6 +62,7 @@ export const EventsList = ({
const team = isHomeTeam
? profile?.team1
: profile?.team2
const eventWithoutClick = isLffClient && profile?.live
return (
<Event key={event.n}>
@ -67,7 +70,7 @@ export const EventsList = ({
active={isEqual(eventPlaylist, selectedPlaylist)}
event={event}
isHomeTeam={isHomeTeam}
onClick={() => !profile?.live && onSelect(eventPlaylist)}
onClick={() => !eventWithoutClick && onSelect(eventPlaylist)}
team={team}
/>
</Event>

Loading…
Cancel
Save