chore: update ramda

This commit is contained in:
Rafael Taranto 2025-05-22 10:10:18 +01:00
parent 82132e8eb8
commit ffb66814f6
45 changed files with 2741 additions and 1620 deletions

View file

@ -12,7 +12,7 @@ import { CURRENCY_MAX } from '../../utils/constants'
import { defaultToZero } from '../../utils/number'
const filterClass = type => R.filter(it => it.class === type)
const filterCoins = ({ id }) => R.filter(it => R.contains(id)(it.cryptos))
const filterCoins = ({ id }) => R.filter(it => R.includes(id)(it.cryptos))
const WalletSchema = Yup.object().shape({
ticker: Yup.string('The ticker must be a string').required(
@ -57,7 +57,7 @@ const OverridesDefaults = {
}
const viewFeeMultiplier = it =>
R.compose(R.prop(['display']), R.find(R.propEq('code', it)))(feeOptions)
R.compose(R.prop(['display']), R.find(R.propEq(it, 'code')))(feeOptions)
const feeOptions = [
{ display: '+60%', code: '1.6' },
@ -204,7 +204,7 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
const viewCryptoCurrency = it => {
const currencyDisplay = R.compose(
it => `${R.prop(['display'])(it)} ${it?.isBeta ? '(Beta)' : ''}`,
R.find(R.propEq('code', it)),
R.find(R.propEq(it, 'code')),
)(cryptoCurrencies)
return currencyDisplay
}
@ -213,7 +213,7 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
const getDisplayName = type => it =>
R.compose(
R.prop('display'),
R.find(R.propEq('code', it)),
R.find(R.propEq(it, 'code')),
)(filterOptions(type))
const getOptions = R.curry((option, it) =>