Fix certain addresses without 3box and ens

This commit is contained in:
Marco van Dijk 2022-03-22 01:42:16 +01:00
parent 8c5721560a
commit dea4b0edc9

View File

@ -92,7 +92,6 @@ const EventButtonAddress = (obj) => {
let thisName;
let thisIcon;
if (hasENS) {
if (thisInfo) {
thisName = <h4 className="elipsText elipsOnMobileExtra">{thisInfo.domain}</h4>;
if (thisInfo.avatar) {
thisIcon =
@ -100,10 +99,6 @@ const EventButtonAddress = (obj) => {
<img alt="" src={thisInfo.avatar.url} width="20em" height="20em" style={{ margin: 0, padding: 0 }} />
</a >
}
} else {
thisName = <span className="elipsText elipsOnMobileExtra">{obj.address}</span>;
thisIcon = null;
}
} else if (hasThreeBox) {
if (thisInfo.name) {
thisName = <h4 className="elipsText elipsOnMobileExtra">{thisInfo.name}</h4>;
@ -115,6 +110,9 @@ const EventButtonAddress = (obj) => {
} else {
thisIcon = null;
}
} else {
thisName = <span className="elipsText elipsOnMobileExtra">{obj.address}</span>;
thisIcon = null;
}