fix: getExternalCryptoCode -> getEquivalentCode
This commit is contained in:
parent
241ce5ef54
commit
c8d2a3d7c2
3 changed files with 3 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ const Blacklist = () => {
|
||||||
|
|
||||||
const blacklistData = R.path(['blacklist'])(blacklistResponse) ?? []
|
const blacklistData = R.path(['blacklist'])(blacklistResponse) ?? []
|
||||||
const availableCurrencies = R.filter(
|
const availableCurrencies = R.filter(
|
||||||
coin => coinUtils.getExternalCryptoCode(coin.code) === coin.code
|
coin => coinUtils.getEquivalentCode(coin.code) === coin.code
|
||||||
)(R.path(['cryptoCurrencies'], blacklistResponse) ?? [])
|
)(R.path(['cryptoCurrencies'], blacklistResponse) ?? [])
|
||||||
|
|
||||||
const formattedData = groupByCode(blacklistData)
|
const formattedData = groupByCode(blacklistData)
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ const ChooseExchange = ({ data: currentData, addData }) => {
|
||||||
const accounts = data?.accounts ?? []
|
const accounts = data?.accounts ?? []
|
||||||
const accountsConfig = data?.accountsConfig ?? []
|
const accountsConfig = data?.accountsConfig ?? []
|
||||||
|
|
||||||
const coin = coinUtils.getExternalCryptoCode(currentData.coin)
|
const coin = coinUtils.getEquivalentCode(currentData.coin)
|
||||||
const exchanges = getItems(accountsConfig, accounts, 'exchange', coin)
|
const exchanges = getItems(accountsConfig, accounts, 'exchange', coin)
|
||||||
|
|
||||||
const submit = () => {
|
const submit = () => {
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ const ChooseTicker = ({ data: currentData, addData }) => {
|
||||||
const accounts = data?.accounts ?? []
|
const accounts = data?.accounts ?? []
|
||||||
const accountsConfig = data?.accountsConfig ?? []
|
const accountsConfig = data?.accountsConfig ?? []
|
||||||
|
|
||||||
const coin = coinUtils.getExternalCryptoCode(currentData.coin)
|
const coin = coinUtils.getEquivalentCode(currentData.coin)
|
||||||
const tickers = getItems(accountsConfig, accounts, 'ticker', coin)
|
const tickers = getItems(accountsConfig, accounts, 'ticker', coin)
|
||||||
|
|
||||||
const submit = () => {
|
const submit = () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue