Skip to content

Commit

Permalink
feat: added getTransactions selector
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala committed Sep 27, 2018
1 parent eccba32 commit f3b721b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/transaction/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3b721b

Please sign in to comment.