Skip to content

Commit

Permalink
fix(home): only show 'tx_status' pending mempool txs, closes #867
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Jul 14, 2021
1 parent 46e7711 commit b65a2c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/hooks/use-mempool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}

0 comments on commit b65a2c0

Please sign in to comment.