From cfbadd7007fbb75d892ca8e45bfbbeb68e372e63 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Sat, 30 Jul 2016 04:23:41 -0400 Subject: [PATCH] Make Featured Content use lbry.getCostEstimate() --- js/page/home.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/page/home.js b/js/page/home.js index ac2c337f0..db6a78d5f 100644 --- a/js/page/home.js +++ b/js/page/home.js @@ -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, }); }); },