ensure names do not change before blur
This commit is contained in:
parent
a1958b92e1
commit
14a52cfd6b
|
@ -328,13 +328,13 @@ const InnerForm = ({
|
||||||
<StatusLogo />
|
<StatusLogo />
|
||||||
<img style={{ maxWidth: '150px', alignSelf: 'center' }} src={EnsLogo} alt="Ens Logo"/>
|
<img style={{ maxWidth: '150px', alignSelf: 'center' }} src={EnsLogo} alt="Ens Logo"/>
|
||||||
</span>
|
</span>
|
||||||
</Hidden>
|
</Hidden>
|
||||||
{!status
|
{!status
|
||||||
? <LookupForm {...{ handleSubmit, values, handleChange }} />
|
? <LookupForm {...{ handleSubmit, values, handleChange }} />
|
||||||
: validAddress(status.address) || defaultAccount === status.ownerAddress ?
|
: validAddress(status.address) || defaultAccount === status.ownerAddress ?
|
||||||
<DisplayAddress
|
<DisplayAddress
|
||||||
{...{ handleSubmit, values, handleChange }}
|
{...{ handleSubmit, values, handleChange }}
|
||||||
domainName={values.domainName}
|
domainName={status.resolvedDomainName}
|
||||||
address={status.address}
|
address={status.address}
|
||||||
statusAccount={status.statusAccount}
|
statusAccount={status.statusAccount}
|
||||||
releaseTime={status.releaseTime}
|
releaseTime={status.releaseTime}
|
||||||
|
@ -348,7 +348,7 @@ const InnerForm = ({
|
||||||
setStatus={setStatus}
|
setStatus={setStatus}
|
||||||
registryOwnsDomain={status.registryOwnsDomain}
|
registryOwnsDomain={status.registryOwnsDomain}
|
||||||
ownerAddress={status.ownerAddress}
|
ownerAddress={status.ownerAddress}
|
||||||
domainName={values.domainName} />
|
domainName={status.resolvedDomainName} />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
@ -371,7 +371,8 @@ const NameLookup = withFormik({
|
||||||
.then(([ address, keys, ownerAddress, releaseTime, suffixOwner ]) => {
|
.then(([ address, keys, ownerAddress, releaseTime, suffixOwner ]) => {
|
||||||
const statusAccount = keyFromXY(keys[0], keys[1]);
|
const statusAccount = keyFromXY(keys[0], keys[1]);
|
||||||
const registryOwnsDomain = registryIsOwner(suffixOwner)
|
const registryOwnsDomain = registryIsOwner(suffixOwner)
|
||||||
setStatus({ address, statusAccount, releaseTime, ownerAddress, registryOwnsDomain });
|
const resolvedDomainName = domainName;
|
||||||
|
setStatus({ address, statusAccount, releaseTime, ownerAddress, registryOwnsDomain, resolvedDomainName });
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})(InnerForm)
|
})(InnerForm)
|
||||||
|
|
Loading…
Reference in New Issue