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,7 +113,9 @@ function plugin (crypto) {
} }
function run () { function run () {
const choices = _.map(c => { const choices = _.flow([
_.filter(c => c.type !== 'erc-20'),
_.map(c => {
const checked = isInstalledSoftware(c) && isInstalledVolume(c) const checked = isInstalledSoftware(c) && isInstalledVolume(c)
return { return {
name: c.display, name: c.display,
@ -121,7 +123,8 @@ function run () {
checked, checked,
disabled: checked && 'Installed' disabled: checked && 'Installed'
} }
}, cryptos) }),
])(cryptos)
const questions = [] const questions = []