Skip to content

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

fix: sms autoconfirm toggle issue

Kang Mingbb1beffe72e4
diff --git a/studio/pages/project/[ref]/auth/settings.tsx b/studio/pages/project/[ref]/auth/settings.tsx
index 980b24fa4a0..86e904ba4e8 100644
--- a/studio/pages/project/[ref]/auth/settings.tsx
+++ b/studio/pages/project/[ref]/auth/settings.tsx
@@ -335,10 +335,10 @@ const Settings = () => {
<UIToggle
layout="horizontal"
label={authConfig.properties.SMS_AUTOCONFIRM.title}
- onChange={() => {
- handleToggle('SMS_AUTOCONFIRM')
+ onChange={(value) => {
+ handleToggle('SMS_AUTOCONFIRM', !value)
}}
- checked={model.SMS_AUTOCONFIRM}
+ checked={!model.SMS_AUTOCONFIRM}
descriptionText={authConfig.properties.SMS_AUTOCONFIRM.help}
/>
</>