From 3608d133d7fa01d6be034bca34d662dbc94717ed Mon Sep 17 00:00:00 2001 From: k00b Date: Sun, 18 Aug 2024 15:20:31 -0500 Subject: [PATCH] remove redundant info help text from wallets --- pages/settings/wallets/[wallet].js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/settings/wallets/[wallet].js b/pages/settings/wallets/[wallet].js index c4121ffc..7d1fcf85 100644 --- a/pages/settings/wallets/[wallet].js +++ b/pages/settings/wallets/[wallet].js @@ -102,7 +102,7 @@ export default function WalletSettings () { function WalletFields ({ wallet: { config, fields, isConfigured } }) { return fields - .map(({ name, label, type, help, optional, editable, clientOnly, serverOnly, ...props }, i) => { + .map(({ name, label = '', type, help, optional, editable, clientOnly, serverOnly, ...props }, i) => { const rawProps = { ...props, name, @@ -115,7 +115,7 @@ function WalletFields ({ wallet: { config, fields, isConfigured } }) { {label} {/* help can be a string or object to customize the label */} {help && ( - + {help.text || help} )}