diff --git a/client/src/pages/organizations/[id]/components/header/index.tsx b/client/src/pages/organizations/[id]/components/header/index.tsx index beca8e86..f13acbcd 100644 --- a/client/src/pages/organizations/[id]/components/header/index.tsx +++ b/client/src/pages/organizations/[id]/components/header/index.tsx @@ -62,10 +62,10 @@ export default function OrganizationHeader({ data }: { data: Organization }) { <Text className="fr-m-0" size="sm"> {getLangFieldValue(locale)(data?.description)} </Text> - {!data?.description && data?.ia_description && ( + {!data?.description && data?.ai_description && ( <> <Text className="fr-m-0" size="sm"> - {getLangFieldValue(locale)(data?.ia_description)} + {getLangFieldValue(locale)(data?.ai_description?.description)} </Text> <Text className="fr-mt-1w" size="sm" style={{ textAlign: "right" }}> <i>{intl.formatMessage({ id: "organizations.header.description.ia-generated-label" })}</i>{" "} diff --git a/client/src/types/organization.ts b/client/src/types/organization.ts index 7255367a..c860206a 100644 --- a/client/src/types/organization.ts +++ b/client/src/types/organization.ts @@ -72,6 +72,11 @@ export type OrganizationAgreementsData = { years: number[], label: string, } +export type OrganizationIaDescription = { + creation_date: string, + model: string, + description: LangField +} export type Organization = { _id: string; @@ -81,7 +86,7 @@ export type Organization = { creationYear?: number; acronym: LangField; description: LangField; - ia_description?: LangField; + ai_description?: OrganizationIaDescription; externalIds: ExternalIdsData[]; kind: string[]; nature?: string;