From 21bb49eeb19ab075d73b0bb40ea5b7db980c1856 Mon Sep 17 00:00:00 2001 From: Qi Liu Date: Fri, 22 Nov 2024 14:50:50 -0800 Subject: [PATCH] update variable name --- .../GeneralSettings/ClientCert/ClientCert.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client-react/src/pages/app/app-settings/GeneralSettings/ClientCert/ClientCert.tsx b/client-react/src/pages/app/app-settings/GeneralSettings/ClientCert/ClientCert.tsx index cf03ceb6b8..bf931a15e7 100644 --- a/client-react/src/pages/app/app-settings/GeneralSettings/ClientCert/ClientCert.tsx +++ b/client-react/src/pages/app/app-settings/GeneralSettings/ClientCert/ClientCert.tsx @@ -56,13 +56,13 @@ const ClientCert: React.FC> = props => { }; useEffect(() => { - const http20EnabledOrTLSVersion12 = + const http20EnabledOrMinTLSVersion13 = values.config.properties.http20Enabled || values.config.properties.minTlsVersion === MinTlsVersion.tLS13; const isClientCertModeOptionalInteractiveUser = values.site.properties.clientCertMode === ClientCertMode.OptionalInteractiveUser; - setDisableOptionalInteractiveUserOption(http20EnabledOrTLSVersion12); - setClientCertWarningMessage(http20EnabledOrTLSVersion12 ? t('clientCertificateWarningMessage') : ''); - if (isClientCertModeOptionalInteractiveUser && http20EnabledOrTLSVersion12) { + setDisableOptionalInteractiveUserOption(http20EnabledOrMinTLSVersion13); + setClientCertWarningMessage(http20EnabledOrMinTLSVersion13 ? t('clientCertificateWarningMessage') : ''); + if (isClientCertModeOptionalInteractiveUser && http20EnabledOrMinTLSVersion13) { setFieldValue('site.properties.clientCertMode', ClientCertMode.Ignore); } // eslint-disable-next-line react-hooks/exhaustive-deps