diff --git a/src/js/views/Artist.js b/src/js/views/Artist.js index 106158e3..726cb91f 100755 --- a/src/js/views/Artist.js +++ b/src/js/views/Artist.js @@ -197,8 +197,12 @@ class Artist extends React.Component{ } if (this.props.artist){ - var can_play_radio = (scheme == 'spotify') - var can_follow = (scheme == 'spotify') + var is_spotify = (scheme == 'spotify') + if (is_spotify){ + var uris_to_play = helpers.arrayOf('uri',this.props.artist.tracks) + } else { + var uris_to_play = this.props.artist.albums_uris + } return (
@@ -212,8 +216,8 @@ class Artist extends React.Component{

{this.props.artist ? this.props.artist.name : null}

- { can_play_radio ? : } - { can_follow ? : null} + + {is_spotify ? : null} {this.props.slim_mode ? null : this.handleContextMenu(e)} />}
{ this.renderSubViewMenu() }