diff --git a/modules/quant_api/src/Form/SettingsForm.php b/modules/quant_api/src/Form/SettingsForm.php
index bb086795..e1107499 100644
--- a/modules/quant_api/src/Form/SettingsForm.php
+++ b/modules/quant_api/src/Form/SettingsForm.php
@@ -126,7 +126,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
}
// Show error if not using TSL verification.
- if ((isset($overrides['api_tls_disabled']) && !$overrides['api_tls_disabled']) || !$config->get('api_tls_disabled')) {
+ if ((isset($overrides['api_tls_disabled']) && $overrides['api_tls_disabled']) || $config->get('api_tls_disabled')) {
\Drupal::messenger()->addError($this->t('DANGER ZONE: TLS verification is disabled for Quant API connections. It is highly recommended that you update your server configuration to handle TLS rather than disabling TLS verification.'));
}