Use new lbry.getClaimInfo() to get claim status on Publish page

This commit is contained in:
Alex Liebowitz 2016-07-28 18:04:55 -04:00
parent c937b28a99
commit 655d764213

View file

@ -141,13 +141,11 @@ var PublishPage = React.createClass({
nameResolved: false, nameResolved: false,
}); });
} else { } else {
lbry.search(name, (results) => { lbry.getClaimInfo(name, (claimInfo) => {
var claimValue = results[0].value;
this.setState({ this.setState({
name: name, name: name,
nameResolved: true, nameResolved: true,
claimValue: parseFloat(claimValue), claimValue: parseFloat(claimInfo.amount),
}); });
}); });
} }