Skip to content

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

Fix category (#22776)

Joshen Limf1101a87abb7
diff --git a/apps/studio/components/interfaces/Account/Preferences/AccountDeletion.tsx b/apps/studio/components/interfaces/Account/Preferences/AccountDeletion.tsx
index 87dae7bfd9e..69eeb340a98 100644
--- a/apps/studio/components/interfaces/Account/Preferences/AccountDeletion.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/AccountDeletion.tsx
@@ -1,12 +1,9 @@
import Panel from 'components/ui/Panel'
-import { useProfile } from 'lib/profile'
import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_ } from 'ui'
import { CriticalIcon } from 'ui-patterns/Icons/StatusIcons'
import { DeleteAccountButton } from './DeleteAccountButton'
export const AccountDeletion = () => {
- const { profile } = useProfile()
-
return (
<>
<Panel className="[&>div:first-child]:uppercase" title="Danger Zone">
diff --git a/apps/studio/components/interfaces/Account/Preferences/DeleteAccountButton.tsx b/apps/studio/components/interfaces/Account/Preferences/DeleteAccountButton.tsx
index 6ab68617f5c..08c3ef25eac 100644
--- a/apps/studio/components/interfaces/Account/Preferences/DeleteAccountButton.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/DeleteAccountButton.tsx
@@ -1,4 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
+import { SupportCategories } from '@supabase/shared-types/out/constants'
import { useEffect, useState } from 'react'
import { useForm } from 'react-hook-form'
import toast from 'react-hot-toast'
@@ -29,7 +30,6 @@ export const DeleteAccountButton = () => {
const { profile } = useProfile()
const [isOpen, setIsOpen] = useState(false)
const { data: organizations, isSuccess } = useOrganizationsQuery()
- const numberOfOwnership = (organizations ?? []).filter((org) => org.is_owner).length
const accountEmail = profile?.primary_email
const FormSchema = z.object({ account: z.string() })
@@ -60,7 +60,7 @@ export const DeleteAccountButton = () => {
const payload = {
subject: 'Account Deletion Request',
message: 'I want to delete my account.',
- category: 'Account Deletion',
+ category: SupportCategories.ACCOUNT_DELETION,
severity: 'Medium',
allowSupportAccess: false,
}