Skip to content

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

fix

Joshen Limdcc5a9af8ae1
diff --git a/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx b/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx
index 63f29638fe6..2640861ae54 100644
--- a/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx
+++ b/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx
@@ -69,20 +69,21 @@ const DeleteProjectButton = ({ type = 'danger' }: DeleteProjectButtonProps) => {
})
}
- await deleteProject({ projectRef: project.ref })
- if (!isFree) {
- try {
+ try {
+ await deleteProject({ projectRef: project.ref })
+
+ if (!isFree) {
await sendExitSurvey({
projectRef,
message,
reasons: selectedReasons.reduce((a, b) => `${a}- ${b}\n`, ''),
})
- } finally {
}
- }
- ui.setNotification({ category: 'success', message: `Successfully deleted ${project.name}` })
- router.push(`/projects`)
+ ui.setNotification({ category: 'success', message: `Successfully deleted ${project.name}` })
+ router.push(`/projects`)
+ } finally {
+ }
}
return (