Handle WithdrawFees. And also hide it

This commit is contained in:
Marco van Dijk 2022-03-02 17:16:36 +01:00
parent bc263eed26
commit 1ba7ddfd89
2 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,7 @@ const EventButton = (obj) => {
</div>
} else if (obj.name == "WithdrawFees") {
eventSpecificInfo = <div className="row">
<p>WithdrawFees: {obj.data.amount / 1000000000000000000} Eth {obj.data.delegator} to {obj.data.recipient}</p>
<p>{obj.data.recipient} claimed stake</p>
</div>
} else if (obj.name == "Reward") {
eventSpecificInfo = <div className="row" style={{ backgroundColor: 'rgba(0, 179, 221, 0.3)' }}>

View File

@ -22,6 +22,10 @@ const EventViewer = (obj) => {
eventCache.push(eventObj);
return;
}
// Skip WithdrawFees buttons cause they are not interesting for the MVP
if (eventObj.name == "WithdrawFees"){
return;
}
return <EventButton
key={eventObj.transactionUrl + idx}
transactionUrl={eventObj.transactionUrl}