Track loading

This commit is contained in:
James Barnsley
2018-09-18 16:59:10 +12:00
parent efa71acbd9
commit 4a2b3f8dca
10 changed files with 32 additions and 38 deletions

View File

@ -32,6 +32,9 @@ class Services extends React.Component{
}
componentDidMount(){
if (this.props.spotify.me && this.props.core.users[this.props.spotify.me.id] === undefined){
this.props.spotifyActions.getMe();
}
if (this.props.lastfm.session && this.props.core.users["lastfm:user:"+this.props.lastfm.session.name] === undefined){
this.props.lastfmActions.getMe();
}