Skip to content

Commit 4396034

Browse files
committed
try to not pass a null stream url to player
1 parent 0a3129a commit 4396034

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Player/presenter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Player extends React.Component {
106106
<Menu fixed='bottom' size="large" compact={true}>
107107
<EnhancedPlayer
108108
track={activeTrack ? activeTrack.track : null}
109-
streamUrl={activeTrack ? activeTrack.track.preview_url : 'none'}
109+
streamUrl={activeTrack && activeTrack.track.preview_url ? activeTrack.track.preview_url : 'none'}
110110
onStartTrack={this.onStartTrack}
111111
onStopTrack={(soundCloudAudio) => {
112112
this.onStopTrack(soundCloudAudio)

0 commit comments

Comments
 (0)