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 () { function run () {
const choices = _.map(c => { const choices = _.flow([
const checked = isInstalledSoftware(c) && isInstalledVolume(c) _.filter(c => c.type !== 'erc-20'),
return { _.map(c => {
name: c.display, const checked = isInstalledSoftware(c) && isInstalledVolume(c)
value: c.code, return {
checked, name: c.display,
disabled: checked && 'Installed' value: c.code,
} checked,
}, cryptos) disabled: checked && 'Installed'
}
}),
])(cryptos)
const questions = [] const questions = []