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({
callback: () => {
callback: useCallback(() => {
if (timeForStatistics.current !== 0) {
saveMatchStats({
matchId: profileId,
@ -637,7 +637,7 @@ export const useVideoPlayer = ({
sportType,
})
}
},
}, [profileId, sportType]),
intervalDuration: VIEW_INTERVAL_MS,
startImmediate: false,
})

Loading…
Cancel
Save