Skip to content

Commit

Permalink
fix SoundContainer shouldcomponentupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Jacquin committed Feb 12, 2019
1 parent 4682f53 commit 7737bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/containers/SoundContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class SoundContainer extends React.Component {
this.props.queue.currentSong !== nextProps.queue.currentSong ||
this.props.player.playbackStatus !== nextProps.player.playbackStatus ||
this.props.player.seek !== nextProps.player.seek ||
(!!currentSong && currentSong.streams.length > 0)
(!!currentSong && !!currentSong.streams && currentSong.streams.length > 0)
);
}

Expand Down

0 comments on commit 7737bdf

Please sign in to comment.