From fd8303c3281828e9e9d1028ad21657b317b40277 Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Fri, 4 Mar 2022 18:11:07 +0100 Subject: [PATCH] Fix activation events --- src/eventButton.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/eventButton.js b/src/eventButton.js index 088f13d..200d279 100644 --- a/src/eventButton.js +++ b/src/eventButton.js @@ -50,12 +50,6 @@ const EventButton = (obj) => { transactionTo = eventObj.data.newDelegate.toLowerCase(); transactionAmount = parseFloat(eventObj.data.bondedAmount) / 1000000000000000000; transactionAdditionalAmount = parseFloat(eventObj.data.additionalAmount) / 1000000000000000000; - if (hasEarningsClaimed) { - transactionName = "Stake"; - hasEarningsClaimed = false; - console.log("COMPLEX BOND " + thisURL); - console.log(thisData); - } hasBondTransaction = true; } // Unbond: defines transactionWhen. Defines transactionAmount as X / 1000000000000000000 LPT @@ -155,10 +149,7 @@ const EventButton = (obj) => { }) // If we only had a bond transaction and nothing else, this is a stake - if (hasBondTransaction) { - if (transactionName === "Migrate"){ - console.log("overwr"); - } + if (hasBondTransaction && transactionName == "") { transactionName = "Stake"; thisColour = stakeColour; }