fix: display XCD, remove non-currencies and filter

This commit is contained in:
CrypticaScriptura 2023-10-19 14:50:54 -04:00
parent 434e3623b0
commit b04597e6cc
3 changed files with 12 additions and 145 deletions

View file

@ -17,7 +17,7 @@ function massageCurrencies (currencies) {
const codeToRec = code => _.find(_.matchesProperty('code', code), mapped)
const top5 = _.map(codeToRec, top5Codes)
const raw = _.uniqBy(_.get('code'), _.concat(top5, mapped))
return raw.filter(r => r.code !== '' && r.code[0] !== 'X' && r.display.indexOf('(') === -1)
return raw.filter(r => r.code !== '' && r.display.indexOf('(') === -1)
}
const mapLanguage = lang => {