From b65a2c00a6d9dfa5fcb3a0bbdc74146d3ff9f69f Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Wed, 14 Jul 2021 11:39:43 +0200 Subject: [PATCH] fix(home): only show 'tx_status' pending mempool txs, closes #867 --- app/hooks/use-mempool.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/hooks/use-mempool.ts b/app/hooks/use-mempool.ts index f9f75d4ac..e610d4f2a 100644 --- a/app/hooks/use-mempool.ts +++ b/app/hooks/use-mempool.ts @@ -35,5 +35,7 @@ export function useMempool(): UseMempool { .filter(tx => tx.sender_address === address) .filter(tx => tx.nonce >= nonce); - return { mempoolTxs, outboundMempoolTxs, refetch }; + const pendingMempoolTxs = mempoolTxs.filter(tx => tx.tx_status === 'pending'); + + return { mempoolTxs: pendingMempoolTxs, outboundMempoolTxs, refetch }; }