refactor: deprecate lodash
This commit is contained in:
parent
676d3e439e
commit
6bbb8059e7
1 changed files with 3 additions and 4 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
import * as _ from 'lodash/fp'
|
|
||||||
import * as R from 'ramda'
|
import * as R from 'ramda'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||||
|
|
@ -442,7 +441,7 @@ const getCommissions = (cryptoCode, deviceId, config) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const specificOverride = R.find(
|
const specificOverride = R.find(
|
||||||
it => it.machine === deviceId && _.includes(cryptoCode)(it.cryptoCurrencies)
|
it => it.machine === deviceId && R.includes(cryptoCode)(it.cryptoCurrencies)
|
||||||
)(overrides)
|
)(overrides)
|
||||||
|
|
||||||
if (specificOverride !== undefined)
|
if (specificOverride !== undefined)
|
||||||
|
|
@ -450,7 +449,7 @@ const getCommissions = (cryptoCode, deviceId, config) => {
|
||||||
|
|
||||||
const machineOverride = R.find(
|
const machineOverride = R.find(
|
||||||
it =>
|
it =>
|
||||||
it.machine === deviceId && _.includes('ALL_COINS')(it.cryptoCurrencies)
|
it.machine === deviceId && R.includes('ALL_COINS')(it.cryptoCurrencies)
|
||||||
)(overrides)
|
)(overrides)
|
||||||
|
|
||||||
if (machineOverride !== undefined)
|
if (machineOverride !== undefined)
|
||||||
|
|
@ -459,7 +458,7 @@ const getCommissions = (cryptoCode, deviceId, config) => {
|
||||||
const coinOverride = R.find(
|
const coinOverride = R.find(
|
||||||
it =>
|
it =>
|
||||||
it.machine === 'ALL_MACHINES' &&
|
it.machine === 'ALL_MACHINES' &&
|
||||||
_.includes(cryptoCode)(it.cryptoCurrencies)
|
R.includes(cryptoCode)(it.cryptoCurrencies)
|
||||||
)(overrides)
|
)(overrides)
|
||||||
|
|
||||||
if (coinOverride !== undefined)
|
if (coinOverride !== undefined)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue