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. 8
      src/features/MatchSidePlaylists/components/PlayButton/index.tsx

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

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

Loading…
Cancel
Save