From 14a52cfd6b9c1c1381c90e7b370a25cca74f7965 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Fri, 28 Sep 2018 17:33:18 -0400 Subject: [PATCH] ensure names do not change before blur --- app/components/ens/nameLookup.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/components/ens/nameLookup.js b/app/components/ens/nameLookup.js index fc292d4..fc603f4 100644 --- a/app/components/ens/nameLookup.js +++ b/app/components/ens/nameLookup.js @@ -328,13 +328,13 @@ const InnerForm = ({ Ens Logo - + {!status ? : validAddress(status.address) || defaultAccount === status.ownerAddress ? + domainName={status.resolvedDomainName} /> } @@ -371,7 +371,8 @@ const NameLookup = withFormik({ .then(([ address, keys, ownerAddress, releaseTime, suffixOwner ]) => { const statusAccount = keyFromXY(keys[0], keys[1]); const registryOwnsDomain = registryIsOwner(suffixOwner) - setStatus({ address, statusAccount, releaseTime, ownerAddress, registryOwnsDomain }); + const resolvedDomainName = domainName; + setStatus({ address, statusAccount, releaseTime, ownerAddress, registryOwnsDomain, resolvedDomainName }); }) } })(InnerForm)