WA-521 Refactor pendingTransactionsSelector taking advantage isExecuted prop

This commit is contained in:
apanizo 2018-08-13 13:49:57 +02:00
parent 7ff49de9d2
commit 0f035acb64
1 changed files with 1 additions and 5 deletions

View File

@ -8,11 +8,7 @@ import { safeTransactionsSelector } from '~/routes/safe/store/selectors/index'
const pendingTransactionsSelector = createSelector(
safeTransactionsSelector,
(transactions: List<Transaction>) =>
transactions.findEntry((transaction: Transaction) => {
const txHash = transaction.get('tx')
return txHash === '' || txHash === undefined
}) !== undefined,
transactions.findEntry((tx: Transaction) => tx.get('isExecuted')),
)
export type SelectorProps = {