refactor: filter Tether/USDT from install candidates
This commit is contained in:
parent
0a27c14079
commit
ba7b1d3d97
1 changed files with 12 additions and 9 deletions
|
|
@ -113,7 +113,9 @@ function plugin (crypto) {
|
|||
}
|
||||
|
||||
function run () {
|
||||
const choices = _.map(c => {
|
||||
const choices = _.flow([
|
||||
_.filter(c => c.type !== 'erc-20'),
|
||||
_.map(c => {
|
||||
const checked = isInstalledSoftware(c) && isInstalledVolume(c)
|
||||
return {
|
||||
name: c.display,
|
||||
|
|
@ -121,7 +123,8 @@ function run () {
|
|||
checked,
|
||||
disabled: checked && 'Installed'
|
||||
}
|
||||
}, cryptos)
|
||||
}),
|
||||
])(cryptos)
|
||||
|
||||
const questions = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue