From f3b721b578957e3a171112d062bc245f322acb93 Mon Sep 17 00:00:00 2001 From: Juan Cazala Date: Thu, 27 Sep 2018 16:26:31 -0300 Subject: [PATCH] feat: added getTransactions selector --- src/modules/transaction/selectors.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/transaction/selectors.ts b/src/modules/transaction/selectors.ts index 806e530f..3471327e 100644 --- a/src/modules/transaction/selectors.ts +++ b/src/modules/transaction/selectors.ts @@ -27,6 +27,11 @@ export const getTransactionsByStatus = ( .filter(tx => tx.from === address && tx.status === status) .sort(sortByTimestamp) +export const getTransactions = (state: any, address: string): Transaction[] => + getData(state) + .filter(tx => tx.from === address) + .sort(sortByTimestamp) + export const getPendingTransactions = ( state: any, address: string