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 {