lbry-desktop/ui/redux/selectors/coinSwap.js

9 lines
302 B
JavaScript
Raw Normal View History

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