Allow empty address (#3961)

This commit is contained in:
Jaco Greeff 2016-12-23 15:24:03 +01:00 committed by GitHub
parent e006af1edd
commit 74efb22230

View File

@ -43,7 +43,7 @@ class IdentityName extends Component {
return null;
}
const nullName = new BigNumber(address).eq(0) ? 'null' : null;
const nullName = new BigNumber(address || 0).eq(0) ? 'null' : null;
const addressFallback = nullName || (shorten ? (<ShortenedHash data={ address } />) : address);
const fallback = unknown ? defaultName : addressFallback;
const isUuid = account && account.name === account.uuid;