add filter currencies set

This commit is contained in:
Barry Gitarts 2019-12-19 13:53:13 -05:00
parent 80cf25ff84
commit f000161202
1 changed files with 2 additions and 1 deletions

View File

@ -33,9 +33,10 @@ function mapToCurrencyFormat(currency) {
}
}
const omitCurrencies = new Set(['ETH', 'OMG'])
function currencyFilter(currency) {
if (isNil(currency)) return false
if (currency.symbol === 'ETH') return false
if (omitCurrencies.has(currency.symbol)) return false
return true
}