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,
|
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),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue