|
|
|
@ -30,6 +30,7 @@ export const useMatchData = (profile: MatchInfo) => { |
|
|
|
matchPlaylists, |
|
|
|
matchPlaylists, |
|
|
|
selectedPlaylist, |
|
|
|
selectedPlaylist, |
|
|
|
setFullMatchPlaylistDuration, |
|
|
|
setFullMatchPlaylistDuration, |
|
|
|
|
|
|
|
setSelectedPlaylist, |
|
|
|
} = useMatchPlaylists() |
|
|
|
} = useMatchPlaylists() |
|
|
|
const { events, fetchMatchEvents } = useEvents() |
|
|
|
const { events, fetchMatchEvents } = useEvents() |
|
|
|
|
|
|
|
|
|
|
|
@ -84,6 +85,11 @@ export const useMatchData = (profile: MatchInfo) => { |
|
|
|
// eslint-disable-next-line
|
|
|
|
// eslint-disable-next-line
|
|
|
|
}, [profile, chaptersDuration]) |
|
|
|
}, [profile, chaptersDuration]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
setSelectedPlaylist(matchPlaylists.match[0]) |
|
|
|
|
|
|
|
// eslint-disable-next-line
|
|
|
|
|
|
|
|
}, [matchId]) |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
events, |
|
|
|
events, |
|
|
|
handlePlaylistClick, |
|
|
|
handlePlaylistClick, |
|
|
|
|