WA-521 Refactor pendingTransactionsSelector taking advantage isExecuted prop
This commit is contained in:
parent
7ff49de9d2
commit
0f035acb64
|
@ -8,11 +8,7 @@ import { safeTransactionsSelector } from '~/routes/safe/store/selectors/index'
|
||||||
const pendingTransactionsSelector = createSelector(
|
const pendingTransactionsSelector = createSelector(
|
||||||
safeTransactionsSelector,
|
safeTransactionsSelector,
|
||||||
(transactions: List<Transaction>) =>
|
(transactions: List<Transaction>) =>
|
||||||
transactions.findEntry((transaction: Transaction) => {
|
transactions.findEntry((tx: Transaction) => tx.get('isExecuted')),
|
||||||
const txHash = transaction.get('tx')
|
|
||||||
|
|
||||||
return txHash === '' || txHash === undefined
|
|
||||||
}) !== undefined,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
export type SelectorProps = {
|
export type SelectorProps = {
|
||||||
|
|
Loading…
Reference in New Issue