From c7a9cef9980a5c4b52d2b90b01c38e9c2777c89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Thu, 3 Feb 2022 17:22:03 +0000 Subject: [PATCH] feat: disable transaction batching editing unless it's BTC --- new-lamassu-admin/src/pages/Wallet/helper.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/new-lamassu-admin/src/pages/Wallet/helper.js b/new-lamassu-admin/src/pages/Wallet/helper.js index bcfc493a..c4f8d67c 100644 --- a/new-lamassu-admin/src/pages/Wallet/helper.js +++ b/new-lamassu-admin/src/pages/Wallet/helper.js @@ -76,9 +76,13 @@ const getAdvancedWalletElements = (cryptoCurrencies, coinUtils, config) => { size: 'sm', stripe: true, width: 250, - view: (_, ite) => - config[`${ite.id}_allowTransactionBatching`] ? 'Yes' : 'No', - input: Checkbox + view: (_, ite) => { + if (ite.id !== 'BTC') + return {`No`} + return config[`${ite.id}_allowTransactionBatching`] ? 'Yes' : 'No' + }, + input: Checkbox, + editable: it => it.id === 'BTC' } ] }