Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ras1 committed Sep 25, 2023
1 parent 4d58b24 commit 2fa51e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ShufflePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function ShufflePlayer() {
function playVideo(video) {
setCurrentVideo(video);
setHideDescription(true);
setPlayedVideos([...playedVideos, video])
setPlayedVideos(played => [...played, video])
}

return (!videoFetchResult.isLoaded ? <LoadingPlaceholder /> :
Expand Down

0 comments on commit 2fa51e5

Please sign in to comment.