mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Fix certain addresses without 3box and ens
This commit is contained in:
parent
8c5721560a
commit
dea4b0edc9
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user