refactor: filter Tether/USDT from install candidates

This commit is contained in:
André Sá 2021-12-30 15:16:18 +00:00
parent 0a27c14079
commit ba7b1d3d97

View file

@ -113,15 +113,18 @@ function plugin (crypto) {
}
function run () {
const choices = _.map(c => {
const checked = isInstalledSoftware(c) && isInstalledVolume(c)
return {
name: c.display,
value: c.code,
checked,
disabled: checked && 'Installed'
}
}, cryptos)
const choices = _.flow([
_.filter(c => c.type !== 'erc-20'),
_.map(c => {
const checked = isInstalledSoftware(c) && isInstalledVolume(c)
return {
name: c.display,
value: c.code,
checked,
disabled: checked && 'Installed'
}
}),
])(cryptos)
const questions = []