diff --git a/src/pages/auth/layout.tsx b/src/pages/auth/layout.tsx index 6d54b1005..ae022a7fe 100644 --- a/src/pages/auth/layout.tsx +++ b/src/pages/auth/layout.tsx @@ -1,5 +1,6 @@ "use client"; import { Button } from "@mui/material"; +import { useT } from "@transifex/react"; import { usePathname } from "next/navigation"; import React from "react"; import { When } from "react-if"; @@ -13,7 +14,7 @@ interface LoginLayoutProps { const LoginLayout: React.FC = props => { const { children } = props; const pathname = usePathname(); - + const t = useT(); return (
@@ -22,7 +23,7 @@ const LoginLayout: React.FC = props => {
diff --git a/src/pages/organization/[id]/components/OrganizationHeader.tsx b/src/pages/organization/[id]/components/OrganizationHeader.tsx index e465f8e28..66b383eb5 100644 --- a/src/pages/organization/[id]/components/OrganizationHeader.tsx +++ b/src/pages/organization/[id]/components/OrganizationHeader.tsx @@ -67,7 +67,7 @@ const OrganizationHeader = ({ organization }: OrganizationHeaderProps) => {
- {formatOptionsList(getOrganisationTypeOptions(t), organization?.type!) || ""} + {formatOptionsList(getOrganisationTypeOptions(t), organization?.type!) ?? ""} {organization?.description}