mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 02:35:09 +02:00
Quick fix for ENS avatars
This commit is contained in:
parent
5e44addef9
commit
5f0beca38c
@ -59,10 +59,11 @@ const Address = (obj) => {
|
||||
let thisIcon;
|
||||
if (thisInfo) {
|
||||
thisName = thisInfo.domain;
|
||||
console.log(thisInfo.avatar);
|
||||
if (thisInfo.avatar) {
|
||||
thisIcon =
|
||||
<a className="selectOrchLight" style={{ padding: '0.2em', cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={"https://app.ens.domains/name/" + thisInfo.domain + "/details"} >
|
||||
<img alt="" src={thisInfo.avatar} width="20em" height="20em" />
|
||||
<img alt="" src={thisInfo.avatar.url} width="20em" height="20em" />
|
||||
</a >
|
||||
} else {
|
||||
thisIcon =
|
||||
|
@ -66,7 +66,7 @@ const EventButtonAddress = (obj) => {
|
||||
if (thisInfo.avatar) {
|
||||
thisIcon =
|
||||
<a className="selectOrch" style={{ padding: '0.2em', cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={"https://app.ens.domains/name/" + thisInfo.domain + "/details"} >
|
||||
<img alt="" src={thisInfo.avatar} width="20em" height="20em" style={{ margin: 0 }} />
|
||||
<img alt="" src={thisInfo.avatar.url} width="20em" height="20em" style={{ margin: 0 }} />
|
||||
</a >
|
||||
} else {
|
||||
thisIcon =
|
||||
|
Loading…
x
Reference in New Issue
Block a user