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,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 = []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue