fix: match stats bugfix

pull/205/head
Ruslan Khayrullin 3 years ago
parent 061b09d1c4
commit 0697dbf072
  1. 4
      src/features/StreamPlayer/hooks/index.tsx

@ -629,7 +629,7 @@ export const useVideoPlayer = ({
// ведем статистику просмотра матча // ведем статистику просмотра матча
const { start: startCollectingStats, stop: stopCollectingStats } = useInterval({ const { start: startCollectingStats, stop: stopCollectingStats } = useInterval({
callback: () => { callback: useCallback(() => {
if (timeForStatistics.current !== 0) { if (timeForStatistics.current !== 0) {
saveMatchStats({ saveMatchStats({
matchId: profileId, matchId: profileId,
@ -637,7 +637,7 @@ export const useVideoPlayer = ({
sportType, sportType,
}) })
} }
}, }, [profileId, sportType]),
intervalDuration: VIEW_INTERVAL_MS, intervalDuration: VIEW_INTERVAL_MS,
startImmediate: false, startImmediate: false,
}) })

Loading…
Cancel
Save