diff --git a/apps/studio/components/interfaces/Support/Success.tsx b/apps/studio/components/interfaces/Support/Success.tsx index ec23215ffd4..a654305183e 100644 --- a/apps/studio/components/interfaces/Support/Success.tsx +++ b/apps/studio/components/interfaces/Support/Success.tsx @@ -4,12 +4,16 @@ import { Button, IconCheck, IconExternalLink, IconMail, IconSearch, Input } from import Divider from 'components/ui/Divider' import { CATEGORY_OPTIONS } from './Support.constants' +import { useProfile } from 'lib/profile' interface SuccessProps { sentCategory?: string } const Success = ({ sentCategory = '' }: SuccessProps) => { + const { profile } = useProfile() + const respondToEmail = profile?.primary_email ?? 'your email' + const categoriesToShowAdditionalResources = ['Problem', 'Unresponsive', 'Performance'] const selectedCategory = CATEGORY_OPTIONS.find((option) => option.value === sentCategory) @@ -26,7 +30,7 @@ const Success = ({ sentCategory = '' }: SuccessProps) => {
- We will reach out to you using your account's email address + We will reach out to you at {respondToEmail}