diff --git a/src/room/GroupCallErrorBoundary.tsx b/src/room/GroupCallErrorBoundary.tsx index ca407ed4..750abcc3 100644 --- a/src/room/GroupCallErrorBoundary.tsx +++ b/src/room/GroupCallErrorBoundary.tsx @@ -13,7 +13,9 @@ import { type ReactNode, type SVGAttributes, useCallback, + useEffect, } from "react"; +import * as Sentry from "@sentry/react"; import { Trans, useTranslation } from "react-i18next"; import { ErrorSolidIcon, @@ -78,6 +80,10 @@ const ErrorPage: FC = ({ }); } + useEffect(() => { + Sentry.captureException(error); + }, [error]); + return (