From a79395692e42dcec54ddcc9704506641ed4521e2 Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Mon, 10 Oct 2022 10:58:59 +0200 Subject: [PATCH] More random Chads --- src/components/eventButtonAddress.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/eventButtonAddress.js b/src/components/eventButtonAddress.js index 720942e..0da3e62 100644 --- a/src/components/eventButtonAddress.js +++ b/src/components/eventButtonAddress.js @@ -10,6 +10,7 @@ const EventButtonAddress = (obj) => { const livepeer = useSelector((state) => state.livepeerstate); const [hasRefreshed, setRefresh] = useState(false); const [orchInfo, setOrchInfo] = useState(null); + const [thisAvatar, setAvatar] = useState(""); const now = new Date().getTime(); useEffect(() => { @@ -103,10 +104,18 @@ const EventButtonAddress = (obj) => { let thisIcon; if (orchInfo && orchInfo.domain) { thisName = {orchInfo.domain}; - if (orchInfo.avatar) { + // Hardcoded Chad substitution + if (thisAvatar == "" && orchInfo.avatar){ + let thisUrl = orchInfo.avatar.url; + if (thisUrl == "https://nframe.nl/avatar.png"){ + thisUrl = "https://nframe.nl/avatar.png?" + performance.now(); + } + setAvatar(thisUrl); + } + if (thisAvatar != "") { thisIcon = - + } } else {