chore: update ramda
This commit is contained in:
parent
82132e8eb8
commit
ffb66814f6
45 changed files with 2741 additions and 1620 deletions
|
|
@ -2,8 +2,8 @@ import * as R from 'ramda'
|
|||
|
||||
import _schema from '../../../Services/schemas'
|
||||
|
||||
const contains = crypto => R.compose(R.contains(crypto), R.prop('cryptos'))
|
||||
const sameClass = type => R.propEq('class', type)
|
||||
const contains = crypto => R.compose(R.includes(crypto), R.prop('cryptos'))
|
||||
const sameClass = type => R.propEq(type, 'class')
|
||||
const filterConfig = (crypto, type) =>
|
||||
R.filter(it => sameClass(type)(it) && contains(crypto)(it))
|
||||
export const getItems = (accountsConfig, accounts, type, crypto) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue