Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

remove console log

Joshen Lim1aa42eb9ac2a
diff --git a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
index 72d19c971ca..37f8a59dcb9 100644
--- a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
+++ b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
@@ -38,10 +38,7 @@ const ProviderForm: FC<Props> = ({ provider }) => {
* as it breaks form. null is not a valid value.
*/
Object.keys(provider.properties).forEach((key) => {
- /**
- * when the key is a 'double negative' key,
- * we must reverse the boolean before adding it to the form
- */
+ // When the key is a 'double negative' key, we must reverse the boolean before adding it to the form
const isDoubleNegative = doubleNegativeKeys.includes(key)
INITIAL_VALUES[key] = isDoubleNegative
@@ -52,23 +49,15 @@ const ProviderForm: FC<Props> = ({ provider }) => {
const onSubmit = async (values: any, { setSubmitting }: any) => {
try {
- /**
- * payload used to update the auth config
- */
const payload = { ...values }
- /**
- * when the key is a 'double negative' key,
- * we must reverse the boolean before the payload can be sent
- */
+ // When the key is a 'double negative' key, we must reverse the boolean before the payload can be sent
Object.keys(values).map((x: string) => {
if (doubleNegativeKeys.includes(x)) {
payload[x] = !values[x]
}
})
- console.log('payload', payload)
-
await authConfig.update(payload)
setSubmitting(false)