From 7efbccbe834fe1a9966b8af8d8dbb01033dc774d Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Fri, 16 Dec 2016 17:56:53 -0500 Subject: [PATCH] Use new lbry.getCostInfoForName() in DownloadLink and WatchLink --- js/component/link.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/component/link.js b/js/component/link.js index 6ba2a838f..0e305e789 100644 --- a/js/component/link.js +++ b/js/component/link.js @@ -113,9 +113,9 @@ export let DownloadLink = React.createClass({ downloading: true }); - lbry.getCostEstimate(this.props.streamName, (amount) => { + lbry.getCostInfoForName(this.props.streamName, ({cost}) => { lbry.getBalance((balance) => { - if (amount > balance) { + if (cost > balance) { this.setState({ modal: 'notEnoughCredits', downloading: false @@ -172,9 +172,9 @@ export let WatchLink = React.createClass({ this.setState({ loading: true, }) - lbry.getCostEstimate(this.props.streamName, (amount) => { + lbry.getCostInfoForName(this.props.streamName, ({cost}) => { lbry.getBalance((balance) => { - if (amount > balance) { + if (cost > balance) { this.setState({ modal: 'notEnoughCredits', loading: false,