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,
});
} else {
lbry.search(name, (results) => {
var claimValue = results[0].value;
lbry.getClaimInfo(name, (claimInfo) => {
this.setState({
name: name,
nameResolved: true,
claimValue: parseFloat(claimValue),
claimValue: parseFloat(claimInfo.amount),
});
});
}