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

9 lines
296 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 selectBtcAddresses = createSelector(selectState, (state: CoinSwapState) => {
return state.btcAddresses.filter((x) => typeof x === 'string');
});