diff --git a/apps/scandic-web/app/global-error.tsx b/apps/scandic-web/app/global-error.tsx index 1ff7f50d3..e317cfba4 100644 --- a/apps/scandic-web/app/global-error.tsx +++ b/apps/scandic-web/app/global-error.tsx @@ -2,6 +2,7 @@ import * as Sentry from "@sentry/nextjs" import { useEffect } from "react" +import { useIntl } from "react-intl" import styles from "./global-error.module.css" @@ -12,6 +13,8 @@ export default function GlobalError({ }) { console.log({ global_error: error }) + const intl = useIntl() + useEffect(() => { Sentry.captureException(error) }, [error]) @@ -20,7 +23,7 @@ export default function GlobalError({