Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Fix logging of listen counts (#71)
Browse files Browse the repository at this point in the history
Co-authored-by: Saliou Diallo <saliou@audius.co>
  • Loading branch information
sddioulde and Saliou Diallo authored Apr 12, 2021
1 parent 9cecb19 commit f0c7c0d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/audio/Audio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,8 @@ const Audio = ({
}, [seek, webRef, progressInvalidator, elapsedTime])

useEffect(() => {
if (listenLoggedForTrack) {
setListenLoggedForTrack(false)
}
}, [track, listenLoggedForTrack, setListenLoggedForTrack])
setListenLoggedForTrack(false)
}, [track, setListenLoggedForTrack])

const [isCastConnecting, setIsCastConnecting] = useState(false)

Expand Down

0 comments on commit f0c7c0d

Please sign in to comment.