2021-03-25 12:24:49 +01:00
|
|
|
// @flow
|
|
|
|
import { createSelector } from 'reselect';
|
|
|
|
|
|
|
|
const selectState = (state: { coinSwap: CoinSwapState }) => state.coinSwap || {};
|
|
|
|
|
2021-04-04 09:10:55 +02:00
|
|
|
export const selectCoinSwaps = createSelector(selectState, (state: CoinSwapState) => {
|
|
|
|
return state.coinSwaps.filter((x) => typeof x.sendAddress === 'string');
|
2021-03-25 12:24:49 +01:00
|
|
|
});
|