From ba7b1d3d97bf02ef29fea507f9fd99ec9f9809b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1?= Date: Thu, 30 Dec 2021 15:16:18 +0000 Subject: [PATCH] refactor: filter Tether/USDT from install candidates --- lib/blockchain/install.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/blockchain/install.js b/lib/blockchain/install.js index 554e3951..efc48107 100644 --- a/lib/blockchain/install.js +++ b/lib/blockchain/install.js @@ -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 = []