diff --git a/frontend/src/layout/ErrorBoundary/ErrorBoundary.tsx b/frontend/src/layout/ErrorBoundary/ErrorBoundary.tsx index cb3212d21ab..28b171d53e1 100644 --- a/frontend/src/layout/ErrorBoundary/ErrorBoundary.tsx +++ b/frontend/src/layout/ErrorBoundary/ErrorBoundary.tsx @@ -1,12 +1,13 @@ import './ErrorBoundary.scss' -import { IconChevronDown } from '@posthog/icons' import { ErrorBoundary as SentryErrorBoundary, getCurrentHub } from '@sentry/react' -import { HelpButton } from 'lib/components/HelpButton/HelpButton' +import { useActions } from 'kea' +import { supportLogic } from 'lib/components/Support/supportLogic' import { LemonButton } from 'lib/lemon-ui/LemonButton' export function ErrorBoundary({ children }: { children?: React.ReactNode }): JSX.Element { const isSentryInitialized = !!getCurrentHub().getClient() + const { openSupportForm } = useActions(supportLogic) return ( }> - Contact PostHog - - } - customKey="error-boundary" - contactOnly - /> + openSupportForm({ kind: 'bug', isEmailFormOpen: true })} + targetBlank + className="mt-2" + > + Email an engineer + )}