API issues sorted, can now scrobble and love tracks

This commit is contained in:
James Barnsley
2017-11-07 08:28:57 +13:00
parent 2d3d4c351a
commit 7739a16504
2 changed files with 7 additions and 14 deletions

View File

@ -16,11 +16,11 @@ class FollowButton extends React.Component{
}
remove(){
this.props.lastfmActions.loveTrack(this.props.uri, this.props.artist, this.props.track);
this.props.lastfmActions.unloveTrack(this.props.uri, this.props.artist, this.props.track);
}
add(){
this.props.lastfmActions.unloveTrack(this.props.uri, this.props.artist, this.props.track);
this.props.lastfmActions.loveTrack(this.props.uri, this.props.artist, this.props.track);
}
render(){