|
|
|
|
@ -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, |
|
|
|
|
}) |
|
|
|
|
|