Use fetched data instead of params for url building

This commit is contained in:
Jonathan Cremin 2015-01-12 00:00:27 +00:00
parent 86011a93aa
commit d8e9a5f61c

View file

@ -90,7 +90,7 @@ module.exports = React.createClass({
name: this.props.shares[0].name,
artist: this.props.shares[0].artist.name,
shares: this.props.shares,
shareUrl: "https://match.audio/" + this.getParams().service + "/" + this.getParams().type + "/" + this.getParams().id
shareUrl: "https://match.audio/" + this.props.shares[0].service + "/" + this.props.shares[0].type + "/" + this.props.shares[0].id
};
}
return {