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

- {intl.formatMessage({ - defaultMessage: "Something went really wrong!", - })} -

+ {/* This renders instead of the root layout so there is no , hence we can't translate this. */} + {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */} +

Something went really wrong!