|
|
|
|
@ -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 ( |
|
|
|
|
|