From 331812b1bf7b767f183dd50981c0c57061af357b Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Wed, 24 Jan 2018 23:51:27 -0600 Subject: [PATCH] fix(lint): fix linting errors --- app/reducers/activity.js | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/app/reducers/activity.js b/app/reducers/activity.js index 49209022..c55325ab 100644 --- a/app/reducers/activity.js +++ b/app/reducers/activity.js @@ -77,7 +77,7 @@ const ACTION_HANDLERS = { [HIDE_ACTIVITY_MODAL]: state => ({ ...state, modal: { modalType: null, modalProps: {} } }), [CHANGE_FILTER]: (state, { filter }) => ({ ...state, filter, filterPulldown: false }), [TOGGLE_PULLDOWN]: state => ({ ...state, filterPulldown: !state.filterPulldown }), - + [UPDATE_SEARCH_TEXT]: (state, { searchText }) => ({ ...state, searchText }) } @@ -99,10 +99,11 @@ const allActivity = createSelector( transactionsSelector, (searchText, payments, invoices, transactions) => { 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 } + 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 + } 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 }