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,17 +92,12 @@ 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 = <a className="selectOrch" style={{ padding: '0', cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={"https://app.ens.domains/name/" + thisInfo.domain + "/details"} >
<a className="selectOrch" style={{ padding: '0', cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={"https://app.ens.domains/name/" + thisInfo.domain + "/details"} > <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) {
@ -115,6 +110,9 @@ const EventButtonAddress = (obj) => {
} else { } else {
thisIcon = null; thisIcon = null;
} }
} else {
thisName = <span className="elipsText elipsOnMobileExtra">{obj.address}</span>;
thisIcon = null;
} }