Skip to content

Commit

Permalink
fix: fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed Dec 23, 2022
1 parent 6dd048f commit 306e090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function APlayer({
{hasPlaylist ? (
<Playlist
open={isPlaylistOpen}
audio={audio}
audio={Array.isArray(audio) ? audio : [audio]}
playingAudioUrl={playlist.currentSong.url}
onPlayAudio={(audioInfo) => playlist.prioritize(audioInfo)}
/>
Expand Down

0 comments on commit 306e090

Please sign in to comment.