Skip to content

Commit 3c048c4

Browse files
committed
[BUGFIX] do not send progress event if not playing
1 parent 80b4f4c commit 3c048c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/podcast/GlobalPodcastPlayer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ const GlobalPodcastPlayer: React.VFC = () => {
3030
}, 500)
3131
useInterval(() => {
3232
playing &&
33+
podcastProgramIds[currentIndex] &&
34+
currentMemberId &&
35+
authToken &&
3336
axios.post(
3437
`${process.env.REACT_APP_API_BASE_ROOT}/tasks/podcast-program-progress`,
3538
{

0 commit comments

Comments
 (0)