Use new lbry.getClaimInfo() to get claim status on Publish page
This commit is contained in:
parent
c937b28a99
commit
655d764213
1 changed files with 2 additions and 4 deletions
|
@ -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),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue