Make Featured Content use lbry.getCostEstimate()
This commit is contained in:
parent
7c77f166cd
commit
cfbadd7007
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
});
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue