Allow empty address (#3961)
This commit is contained in:
parent
e006af1edd
commit
74efb22230
@ -43,7 +43,7 @@ class IdentityName extends Component {
|
|||||||
return null;
|
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 addressFallback = nullName || (shorten ? (<ShortenedHash data={ address } />) : address);
|
||||||
const fallback = unknown ? defaultName : addressFallback;
|
const fallback = unknown ? defaultName : addressFallback;
|
||||||
const isUuid = account && account.name === account.uuid;
|
const isUuid = account && account.name === account.uuid;
|
||||||
|
Loading…
Reference in New Issue
Block a user