Skip to content

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

Sentry: capture message on support form err (#26656)

Jordi Enrica9aa3acf7288
diff --git a/apps/studio/components/interfaces/Support/SupportForm.tsx b/apps/studio/components/interfaces/Support/SupportForm.tsx
index 83043a55db0..b5e217a80ba 100644
--- a/apps/studio/components/interfaces/Support/SupportForm.tsx
+++ b/apps/studio/components/interfaces/Support/SupportForm.tsx
@@ -4,7 +4,7 @@ import Link from 'next/link'
import { useRouter } from 'next/router'
import { ChangeEvent, useEffect, useRef, useState } from 'react'
import toast from 'react-hot-toast'
-
+import * as Sentry from '@sentry/nextjs'
import { useParams } from 'common'
import InformationBox from 'components/ui/InformationBox'
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
@@ -76,6 +76,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {
},
onError: (error) => {
toast.error(`Failed to submit support ticket: ${error.message}`)
+ Sentry.captureMessage('Failed to submit Support Form: ' + error.message)
setIsSubmitting(false)
},
})