diff --git a/app/components/ens/nameLookup.js b/app/components/ens/nameLookup.js index 09bb640..2f2a6ef 100644 --- a/app/components/ens/nameLookup.js +++ b/app/components/ens/nameLookup.js @@ -151,7 +151,7 @@ class RenderAddresses extends PureComponent { } } -const RegisterInfoCard = ({ formattedDomain, domainPrice }) => ( +const RegisterInfoCard = ({ formattedDomain, domainPrice, registryOwnsDomain }) => ( @@ -173,7 +173,9 @@ const RegisterInfoCard = ({ formattedDomain, domainPrice }) => ( - This name will be pointed to the wallet address and contact code below + {registryOwnsDomain ? + 'This name will be pointed to the wallet address and contact code below' : + 'This domain is not owned by the registy'} @@ -214,18 +216,18 @@ class Register extends PureComponent { const { domainPrice, registered, submitted } = this.state; const formattedDomain = formatName(domainName); const formattedDomainArray = formattedDomain.split('.'); - console.log({registryOwnsDomain}) return (
{!registered && !submitted ? - - + {registryOwnsDomain && + { this.setState({ submitted: true }) }} - registeredCallbackFn={this.onRegistered} /> + registeredCallbackFn={this.onRegistered} />} : submitted && !registered ? : }
diff --git a/app/dapp.js b/app/dapp.js index bbba956..128508b 100644 --- a/app/dapp.js +++ b/app/dapp.js @@ -62,7 +62,7 @@ class App extends React.Component { } {searching && - +