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