From dea4b0edc9aa94c4648d04cbb83a7405c060e0bc Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Tue, 22 Mar 2022 01:42:16 +0100 Subject: [PATCH] Fix certain addresses without 3box and ens --- src/components/eventButtonAddress.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/components/eventButtonAddress.js b/src/components/eventButtonAddress.js index 6407512..01dfd86 100644 --- a/src/components/eventButtonAddress.js +++ b/src/components/eventButtonAddress.js @@ -92,17 +92,12 @@ const EventButtonAddress = (obj) => { let thisName; let thisIcon; if (hasENS) { - if (thisInfo) { - thisName =

{thisInfo.domain}

; - if (thisInfo.avatar) { - thisIcon = - - - - } - } else { - thisName = {obj.address}; - thisIcon = null; + thisName =

{thisInfo.domain}

; + if (thisInfo.avatar) { + thisIcon = + + + } } else if (hasThreeBox) { if (thisInfo.name) { @@ -115,6 +110,9 @@ const EventButtonAddress = (obj) => { } else { thisIcon = null; } + } else { + thisName = {obj.address}; + thisIcon = null; }