diff --git a/src/components/WinnerMonth.js b/src/components/WinnerMonth.js index 52254c3..6f0507a 100644 --- a/src/components/WinnerMonth.js +++ b/src/components/WinnerMonth.js @@ -21,12 +21,12 @@ const WinnerMonth = (obj) => { if (now - thisScore.timestamp < 360000) { wasInCache = true; } - if (!thisScores){ + if (!thisScores) { setThisScores(thisScore); } } } - if (!wasInCache){ + if (!wasInCache) { dispatch(getOrchestratorScores(obj.year, obj.month)); } }, [livepeer.orchScores]); @@ -57,14 +57,14 @@ const WinnerMonth = (obj) => { if (thisAddr.name) { return thisAddr.name; } else { - return address; + return (address.substring(0, 10) + ".."); } break; } } } - return address; + return (address.substring(0, 10) + ".."); } let pieList = []; @@ -77,7 +77,7 @@ const WinnerMonth = (obj) => { otherSum += thisTicket.sum; } else { pieList.push({ - address: getName(thisTicket.address).substring(0, 24), + address: getName(thisTicket.address), sum: thisTicket.sum }); } @@ -91,7 +91,30 @@ const WinnerMonth = (obj) => { return (