|
|
@ -101,8 +101,9 @@ const allActivity = createSelector( |
|
|
|
const searchedArr = [...payments, ...invoices, ...transactions].filter(tx => { |
|
|
|
if ((tx.tx_hash && tx.tx_hash.includes(searchText)) || |
|
|
|
(tx.payment_hash && tx.payment_hash.includes(searchText)) || |
|
|
|
(tx.r_hash && tx.r_hash.includes(searchText))) |
|
|
|
{ return true } |
|
|
|
(tx.r_hash && tx.r_hash.includes(searchText))) { |
|
|
|
return true |
|
|
|
} |
|
|
|
|
|
|
|
return false |
|
|
|
}) |
|
|
@ -156,19 +157,6 @@ activitySelectors.nonActiveFilters = createSelector( |
|
|
|
(filters, filter) => filters.filter(f => f.key !== filter.key) |
|
|
|
) |
|
|
|
|
|
|
|
activitySelectors.searchActivity = createSelector( |
|
|
|
searchSelector, |
|
|
|
paymentsSelector, |
|
|
|
transactionsSelector, |
|
|
|
invoicesSelector, |
|
|
|
(searchText, payments, transactions, invoices) => { |
|
|
|
if (!searchText.length) { return } |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
export { activitySelectors } |
|
|
|
|
|
|
|
|
|
|
|