diff --git a/js/page/publish.js b/js/page/publish.js
index 5a155e601..47dd06fb9 100644
--- a/js/page/publish.js
+++ b/js/page/publish.js
@@ -146,6 +146,10 @@ var PublishPage = React.createClass({
}
lbry.resolveName(name, (info) => {
+ if (name != this.refs.name.getValue()) {
+ return;
+ }
+
if (!info) {
this.setState({
name: name,
@@ -153,10 +157,14 @@ var PublishPage = React.createClass({
});
} else {
lbry.getClaimInfo(name, (claimInfo) => {
+ if (name != this.refs.name.getValue()) {
+ return;
+ }
+
var newState = {
name: name,
nameResolved: true,
- nameIsMine: true, //claimInfo.is_mine,
+ nameIsMine: claimInfo.is_mine,
claimValue: parseFloat(claimInfo.amount),
claimMetadata: claimInfo.value,
};
@@ -270,7 +278,7 @@ var PublishPage = React.createClass({
lbry://
{
(!this.state.name ? '' :
- (! this.state.nameResolved ? This name is available
+ (! this.state.nameResolved ? This name is available: {this.state.name}
: (this.state.nameIsMine ? You already control this name. You can use this page to update your claim.
: This name is currently claimed for {lbry.formatCredits(this.state.claimValue)} credits.)))
}