Skip to content

Commit

Permalink
Fix first track in lineup playback issue (#8632)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored May 29, 2024
1 parent 8df5bdb commit b8e24e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/mobile/src/components/audio/AudioPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import {
playbackPositionActions,
playbackPositionSelectors,
gatedContentSelectors,
calculatePlayerBehavior
calculatePlayerBehavior,
PlayerBehavior
} from '@audius/common/store'
import type { Queueable, CommonState } from '@audius/common/store'
import {
Expand Down Expand Up @@ -179,7 +180,8 @@ export const AudioPlayer = () => {
const uid = useSelector(getUid)
const playerBehavior = useSelector(getPlayerBehavior)
const previousUid = usePrevious(uid)
const previousPlayerBehavior = usePrevious(playerBehavior)
const previousPlayerBehavior =
usePrevious(playerBehavior) || PlayerBehavior.FULL_OR_PREVIEW
const trackPositions = useSelector((state: CommonState) =>
getUserTrackPositions(state, { userId: currentUserId })
)
Expand Down

0 comments on commit b8e24e7

Please sign in to comment.