Quick fix for ENS avatars

This commit is contained in:
Marco van Dijk 2022-03-21 01:22:26 +01:00
parent 5e44addef9
commit 5f0beca38c
2 changed files with 3 additions and 2 deletions

View File

@ -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 =

View File

@ -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 =