Skip to content

Commit ce74e93

Browse files
authored
Merge pull request #58 from PortalNetwork/develop
v0.1.8
2 parents 6a0df7b + a579b77 commit ce74e93

File tree

1 file changed

+6
-0
lines changed
  • src/components/SearchBar/IdentityPage

1 file changed

+6
-0
lines changed

src/components/SearchBar/IdentityPage/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ export default class extends Component {
2626
const { domain, subdomain } = this.state;
2727
const to = getEthereumSubdomainRegistrarAddress();
2828
const subnodeData = setSubdomain(subdomain, domain, 'eth', metaMask.account, metaMask.account);
29+
30+
if(metaMask.account === undefined){
31+
const tx = <span className="tx">Please unlock your wallet before send transaction</span>;
32+
return handleWarningOpen(tx);
33+
}
34+
2935
web3.eth.sendTransaction({
3036
from: metaMask.account,
3137
to: to,

0 commit comments

Comments
 (0)