diff --git a/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx b/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx index d1709896cf1..c276e186320 100644 --- a/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx +++ b/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx @@ -62,13 +62,11 @@ const SSLConfiguration = () => { } } - if (!hasAccessToSSLEnforcement) return <> - return (
-
+ {/*
-
+
*/}
- -

- Reject non-SSL connections to your database -

- {!sslEnforcementConfiguration?.appliedSuccessfully && ( - - Please try updating again, or contact{' '} - - - support - - {' '} - if this error persists - - )} -
- } - > - Enforce SSL on incoming connections - - } - > - -
- {(isLoading || isSubmitting) && ( - - )} - -
-
- + {hasAccessToSSLEnforcement && ( + +

+ Reject non-SSL connections to your database +

+ {!sslEnforcementConfiguration?.appliedSuccessfully && ( + + Please try updating again, or contact{' '} + + + support + + {' '} + if this error persists + + )} + + } + > + Enforce SSL on incoming connections + + } + > + +
+ {(isLoading || isSubmitting) && ( + + )} + +
+
+
+ )}