From b30c3b4d8cc44117b7af0296109d12816e51b86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1?= Date: Tue, 8 Mar 2022 18:10:41 +0000 Subject: [PATCH] feat: omit 0conf columns at the end of the initial setup wizard --- .../pages/Wizard/components/Wallet/AllSet.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.js b/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.js index f2653ffd..ae891826 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.js +++ b/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.js @@ -70,6 +70,20 @@ const AllSet = ({ data: currentData, doContinue }) => { return saveConfig({ variables: { config } }) } + const presentableData = R.pipe( + R.omit(['coin', 'zeroConf', 'zeroConfLimit']), + toNamespace(coin) + )(currentData) + + const presentableElements = R.filter( + R.pipe( + R.prop('name'), + R.flip(R.includes)(['zeroConf', 'zeroConfLimit']), + R.not() + ), + getElements(cryptoCurrencies, accountsConfig, null, true) + ) + return ( <>

All set

@@ -82,8 +96,8 @@ const AllSet = ({ data: currentData, doContinue }) => { titleLg name="All set" namespaces={[coin]} - data={toNamespace(coin, R.omit('coin', currentData))} - elements={getElements(cryptoCurrencies, accountsConfig, true)} + data={presentableData} + elements={presentableElements} />