diff --git a/js/libs/ui-shared/src/context/ErrorPage.tsx b/js/libs/ui-shared/src/context/ErrorPage.tsx index af0babd843..402aa4afcd 100644 --- a/js/libs/ui-shared/src/context/ErrorPage.tsx +++ b/js/libs/ui-shared/src/context/ErrorPage.tsx @@ -5,9 +5,9 @@ import { Page, Text, TextContent, - TextVariants, } from "@patternfly/react-core"; import { useTranslation } from "react-i18next"; +import { label } from "../user-profile/utils"; import { getNetworkErrorDescription } from "../utils/errors"; type ErrorPageProps = { @@ -30,7 +30,7 @@ export const ErrorPage = (props: ErrorPageProps) => { { ]} > - {t("somethingWentWrongDescription")} - {errorMessage && ( - {errorMessage} + {errorMessage ? ( + {label(t, errorMessage)} + ) : ( + {t("somethingWentWrongDescription")} )}