fix: remove geth only from wizard
This commit is contained in:
parent
05a6d0aa41
commit
db13106a2f
2 changed files with 3 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ const ALL_ACCOUNTS = [
|
||||||
{ code: 'bitcoind', display: 'bitcoind', class: WALLET, cryptos: [BTC] },
|
{ code: 'bitcoind', display: 'bitcoind', class: WALLET, cryptos: [BTC] },
|
||||||
{ code: 'no-layer2', display: 'No Layer 2', class: LAYER_2, cryptos: ALL_CRYPTOS },
|
{ code: 'no-layer2', display: 'No Layer 2', class: LAYER_2, cryptos: ALL_CRYPTOS },
|
||||||
{ code: 'infura', display: 'Infura', class: WALLET, cryptos: [ETH] },
|
{ code: 'infura', display: 'Infura', class: WALLET, cryptos: [ETH] },
|
||||||
|
{ code: 'geth', display: 'geth', class: WALLET, cryptos: [ETH] },
|
||||||
{ code: 'zcashd', display: 'zcashd', class: WALLET, cryptos: [ZEC] },
|
{ code: 'zcashd', display: 'zcashd', class: WALLET, cryptos: [ZEC] },
|
||||||
{ code: 'litecoind', display: 'litecoind', class: WALLET, cryptos: [LTC] },
|
{ code: 'litecoind', display: 'litecoind', class: WALLET, cryptos: [LTC] },
|
||||||
{ code: 'dashd', display: 'dashd', class: WALLET, cryptos: [DASH] },
|
{ code: 'dashd', display: 'dashd', class: WALLET, cryptos: [DASH] },
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,10 @@ const contains = crypto => R.compose(R.contains(crypto), R.prop('cryptos'))
|
||||||
const sameClass = type => R.propEq('class', type)
|
const sameClass = type => R.propEq('class', type)
|
||||||
const filterConfig = (crypto, type) =>
|
const filterConfig = (crypto, type) =>
|
||||||
R.filter(it => sameClass(type)(it) && contains(crypto)(it))
|
R.filter(it => sameClass(type)(it) && contains(crypto)(it))
|
||||||
|
const removeGethOption = R.filter(config => config.code !== 'geth')
|
||||||
|
|
||||||
const getItems = (accountsConfig, accounts, type, crypto) => {
|
const getItems = (accountsConfig, accounts, type, crypto) => {
|
||||||
const fConfig = filterConfig(crypto, type)(accountsConfig)
|
const fConfig = removeGethOption(filterConfig(crypto, type)(accountsConfig))
|
||||||
const find = code => accounts && accounts[code]
|
const find = code => accounts && accounts[code]
|
||||||
|
|
||||||
const [filled, unfilled] = R.partition(({ code }) => {
|
const [filled, unfilled] = R.partition(({ code }) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue