Skip to content

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

Fix auth provider forms double negative ui issue

Joshen Lim1c550a4a5b92
diff --git a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
index e7707fddb08..bbdcd16f19d 100644
--- a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
+++ b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
@@ -32,6 +32,7 @@ const ProviderForm: FC<Props> = ({ provider }) => {
const isActive = authConfig.config[`EXTERNAL_${provider?.title?.toUpperCase()}_ENABLED`]
const INITIAL_VALUES = generateInitialValues()
+ if (provider.title === 'Email') console.log('initial', INITIAL_VALUES)
const onSubmit = async (values: any, { setSubmitting, resetForm }: any) => {
const payload = { ...values }
@@ -46,7 +47,7 @@ const ProviderForm: FC<Props> = ({ provider }) => {
const { error } = await authConfig.update(payload)
if (!error) {
- resetForm({ values: payload, initialValues: payload })
+ resetForm({ values: { ...values }, initialValues: { ...values } })
setOpen(false)
ui.setNotification({ category: 'success', message: 'Successfully updated settings' })
} else {