diff --git a/apps/portal/src/components/offers/profile/EducationCard.tsx b/apps/portal/src/components/offers/profile/EducationCard.tsx index 9549e423..603b3c67 100644 --- a/apps/portal/src/components/offers/profile/EducationCard.tsx +++ b/apps/portal/src/components/offers/profile/EducationCard.tsx @@ -3,6 +3,8 @@ import { LightBulbIcon, } from '@heroicons/react/24/outline'; +import type { EducationType } from '~/components/offers/EducationFields'; +import { getLabelForEducationFieldType } from '~/components/offers/EducationFields'; import type { EducationDisplayData } from '~/components/offers/types'; type Props = Readonly<{ @@ -19,7 +21,16 @@ export default function EducationCard({
- {field ? `${type ?? 'N/A'}, ${field}` : type ?? `N/A`} + {field + ? `${ + type ? type.charAt(0).toUpperCase() + type.slice(1) : 'N/A' + }, ${ + getLabelForEducationFieldType(field as EducationType) ?? + 'N/A' + }` + : type + ? type.charAt(0).toUpperCase() + type.slice(1) + : `N/A`}
{school && (