fix(ott-2790): fixed filter playlist

keep-around/2fd168b18eeebc91eac94ae86d817c12edfe1576
Сергей Шитиков 3 years ago committed by Gitea
parent 4df71019c4
commit 861b9025e1
  1. 10
      src/features/MatchSidePlaylists/components/MatchPlaylists/index.tsx
  2. 6
      src/features/MatchSidePlaylists/components/PlayButton/index.tsx

@ -42,12 +42,12 @@ export const MatchPlaylists = ({
playlists,
selectedMathPlaylist,
}: Props) => {
// console.log('🚀 ~ file: index.tsx ~ line 45 ~ live', live)
// console.log('🚀 ~ file: index.tsx ~ line 45 ~ playlists', playlists)
const filteredPlayListByDuration = useMemo(() => (
filter(playlists, (playlist) => (live
? !!playlist.duration || (playlist.id === 'full_game')
: !!playlist.duration))
filter(playlists, (playlist) => (
live
? Boolean(playlist.duration) || (playlist.id === 'full_game')
: Boolean(playlist.duration)
))
), [playlists, live])
return (

@ -31,10 +31,10 @@ const Duration = styled(Title)`
export const LiveBtn = styled(LiveBtnBase)<TLiveBtn>`
margin-left: 10px;
background-color: ${({ isActive }) => (isActive
background-color: ${({ isActive }) => (
isActive
? 'transparent'
: '#CC0000')
};
: '#CC0000')};
`
export const PlayButton = ({

Loading…
Cancel
Save