From 9d3c69e337a14ddb012279de581252c36ec026cd Mon Sep 17 00:00:00 2001 From: Alberto Elias Date: Fri, 18 Jun 2021 19:28:45 +0200 Subject: [PATCH 1/2] Cleans up delayed withdraw once process has finished --- src/store/global/global.thunks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/global/global.thunks.js b/src/store/global/global.thunks.js index 0fa6a2d80..57ea9f8e9 100644 --- a/src/store/global/global.thunks.js +++ b/src/store/global/global.thunks.js @@ -347,6 +347,7 @@ function checkPendingWithdrawals () { // Checks here to have access to pendingWithdraw.hash if (exitTx.instantWithdraw || exitTx.delayedWithdraw) { dispatch(removePendingWithdraw(pendingWithdraw.hash)) + dispatch(removePendingDelayedWithdrawByHash(pendingWithdraw.hash)) } }) }) From ebf26c10b14ed0413fa919ec2b49344776573f1e Mon Sep 17 00:00:00 2001 From: Alberto Elias Date: Fri, 18 Jun 2021 19:54:30 +0200 Subject: [PATCH 2/2] Remove pending withdraw by id as the hash is from a different tx --- src/store/global/global.thunks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/global/global.thunks.js b/src/store/global/global.thunks.js index 57ea9f8e9..246f971cc 100644 --- a/src/store/global/global.thunks.js +++ b/src/store/global/global.thunks.js @@ -347,7 +347,7 @@ function checkPendingWithdrawals () { // Checks here to have access to pendingWithdraw.hash if (exitTx.instantWithdraw || exitTx.delayedWithdraw) { dispatch(removePendingWithdraw(pendingWithdraw.hash)) - dispatch(removePendingDelayedWithdrawByHash(pendingWithdraw.hash)) + dispatch(removePendingDelayedWithdraw(pendingWithdraw.id)) } }) })