fix: getExternalCryptoCode -> getEquivalentCode

This commit is contained in:
siiky 2023-10-09 14:48:05 +01:00
parent 241ce5ef54
commit c8d2a3d7c2
3 changed files with 3 additions and 3 deletions

View file

@ -143,7 +143,7 @@ const Blacklist = () => {
const blacklistData = R.path(['blacklist'])(blacklistResponse) ?? []
const availableCurrencies = R.filter(
coin => coinUtils.getExternalCryptoCode(coin.code) === coin.code
coin => coinUtils.getEquivalentCode(coin.code) === coin.code
)(R.path(['cryptoCurrencies'], blacklistResponse) ?? [])
const formattedData = groupByCode(blacklistData)

View file

@ -55,7 +55,7 @@ const ChooseExchange = ({ data: currentData, addData }) => {
const accounts = data?.accounts ?? []
const accountsConfig = data?.accountsConfig ?? []
const coin = coinUtils.getExternalCryptoCode(currentData.coin)
const coin = coinUtils.getEquivalentCode(currentData.coin)
const exchanges = getItems(accountsConfig, accounts, 'exchange', coin)
const submit = () => {

View file

@ -35,7 +35,7 @@ const ChooseTicker = ({ data: currentData, addData }) => {
const accounts = data?.accounts ?? []
const accountsConfig = data?.accountsConfig ?? []
const coin = coinUtils.getExternalCryptoCode(currentData.coin)
const coin = coinUtils.getEquivalentCode(currentData.coin)
const tickers = getItems(accountsConfig, accounts, 'ticker', coin)
const submit = () => {