Skip to content

Commit

Permalink
update selectAudioPlayerStates to include currentTime
Browse files Browse the repository at this point in the history
  • Loading branch information
emrecancorapci committed Dec 24, 2023
1 parent c0db719 commit b775179
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export const selectProgressBarStates = createSelector([duration, currentTime], (
});

export const selectAudioPlayerStates = createSelector(
[audioSource, volume, isMuted, isPlaying],
(audioSource, volume, isMuted, isPlaying) => {
return { audioSource, volume, isMuted, isPlaying };
[audioSource, currentTime, volume, isMuted, isPlaying],
(audioSource, currentTime, volume, isMuted, isPlaying) => {
return { audioSource, currentTime, volume, isMuted, isPlaying };
},
);

Expand Down

0 comments on commit b775179

Please sign in to comment.