Detect non-authorized Genius rather than triggering error

This commit is contained in:
James Barnsley
2018-10-18 16:47:35 +13:00
parent 056af9d5bf
commit fdce2b08cb
9 changed files with 13904 additions and 10629 deletions

View File

@ -57,7 +57,7 @@ class Track extends React.Component{
if (nextProps.params.uri != this.props.params.uri){
this.props.coreActions.loadTrack(nextProps.params.uri);
if (nextProps.tracks.artists){
if (nextProps.genius_authorized && nextProps.tracks.artists){
this.props.geniusActions.findTrackLyrics(nextProps.track);
}