diff --git a/new-lamassu-admin/src/pages/Wallet/helper.js b/new-lamassu-admin/src/pages/Wallet/helper.js
index fca2b6b4..1b341dee 100644
--- a/new-lamassu-admin/src/pages/Wallet/helper.js
+++ b/new-lamassu-admin/src/pages/Wallet/helper.js
@@ -175,6 +175,11 @@ const getAdvancedWalletElementsOverrides = (
]
}
+const has0Conf = R.complement(
+ /* NOTE: List of coins without 0conf settings. */
+ R.pipe(R.prop('id'), R.flip(R.includes)(['ETH', 'USDT']))
+)
+
const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
const widthAdjust = wizard ? 11 : 0
const viewCryptoCurrency = it => {
@@ -254,7 +259,14 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
header: 'Confidence Checking',
size: 'sm',
stripe: true,
- view: getDisplayName('zeroConf'),
+ view: (it, row) => {
+ const displayName = getDisplayName('zeroConf')(it, row)
+ return has0Conf(row) ? (
+ displayName
+ ) : (
+ {displayName}
+ )
+ },
input: Autocomplete,
width: 210 - widthAdjust,
inputProps: {
@@ -263,7 +275,8 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
labelProp: 'display',
optionsLimit: null,
onChange
- }
+ },
+ editable: has0Conf
},
{
name: 'zeroConfLimit',
@@ -271,13 +284,13 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
size: 'sm',
stripe: true,
view: (it, row) =>
- row.id === 'ETH' ? {it} : it,
+ has0Conf(row) ? it : {it},
input: NumberInput,
width: 145 - widthAdjust,
inputProps: {
decimalPlaces: 0
},
- editable: row => row.id !== 'ETH'
+ editable: has0Conf
}
]
}