Skip to content

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

Exit survey not showing error message correctly

Joshen Lim585cb4d1dfe1
diff --git a/studio/components/interfaces/Billing/ExitSurvey/ExitSurvey.tsx b/studio/components/interfaces/Billing/ExitSurvey/ExitSurvey.tsx
index a499a643464..2dffe5af320 100644
--- a/studio/components/interfaces/Billing/ExitSurvey/ExitSurvey.tsx
+++ b/studio/components/interfaces/Billing/ExitSurvey/ExitSurvey.tsx
@@ -149,7 +149,10 @@ const ExitSurvey: FC<Props> = ({ freeTier, subscription, onSelectBack }) => {
})
if (feedbackRes.error) throw feedbackRes.error
} catch (error: any) {
- ui.setNotification({ category: 'error', message: `Failed to cancel subscription: ${error}` })
+ ui.setNotification({
+ category: 'error',
+ message: `Failed to cancel subscription: ${error.message}`,
+ })
} finally {
setIsSubmitting(false)
}