diff --git a/js/apps/account-ui/src/account-security/DeviceActivity.tsx b/js/apps/account-ui/src/account-security/DeviceActivity.tsx index 371b5e42e6..3bceb883d9 100644 --- a/js/apps/account-ui/src/account-security/DeviceActivity.tsx +++ b/js/apps/account-ui/src/account-security/DeviceActivity.tsx @@ -1,6 +1,7 @@ import { ContinueCancelModal, useEnvironment, + label, } from "@keycloak/keycloak-ui-shared"; import { Button, @@ -35,7 +36,6 @@ import { SessionRepresentation, } from "../api/representations"; import { Page } from "../components/page/Page"; -import { TFuncKey } from "../i18n"; import { formatDate } from "../utils/formatDate"; import { useAccountAlerts } from "../utils/useAccountAlerts"; import { usePromise } from "../utils/usePromise"; @@ -92,7 +92,7 @@ export const DeviceActivity = () => { clients.forEach((client, index) => { let clientName: string; if (client.clientName !== "") { - clientName = t(client.clientName as TFuncKey); + clientName = label(t, client.clientName); } else { clientName = client.clientId; }