Make Featured Content use lbry.getCostEstimate()

This commit is contained in:
Alex Liebowitz 2016-07-30 04:23:41 -04:00
parent 7c77f166cd
commit cfbadd7007

View file

@ -169,9 +169,9 @@ var FeaturedContentItem = React.createClass({
title: metadata.title || ('lbry://' + this.props.name),
})
});
lbry.search(this.props.name, (results) => {
lbry.getCostEstimate(this.props.name, (amount) => {
this.setState({
amount: (results ? results[0].cost_est : 0.0)
amount: amount,
});
});
},