Skip to content

Commit c0f7c97

Browse files
on skip the track should start playing
1 parent 34026ca commit c0f7c97

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hooks/player/functions/controls.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ export async function previous(): Promise<void> {
3737
* @param index The track index to skip to, to skip multiple tracks
3838
*/
3939
export async function skip(index: number | undefined): Promise<void> {
40-
const { state } = await TrackPlayer.getPlaybackState()
41-
4240
if (!isUndefined(index)) await TrackPlayer.skip(index)
4341
else await TrackPlayer.skipToNext()
4442

45-
if (state === State.Playing) await TrackPlayer.play()
43+
await TrackPlayer.play()
4644
}

0 commit comments

Comments
 (0)