diff --git a/src/components/profile/SpecializationCard.tsx b/src/components/profile/SpecializationCard.tsx index c8209a6..2f28b13 100644 --- a/src/components/profile/SpecializationCard.tsx +++ b/src/components/profile/SpecializationCard.tsx @@ -29,7 +29,7 @@ export function SpecializationCard({ }; return ( -
+
{icon}

{title}

diff --git a/src/utils/profileDataMapper.ts b/src/utils/profileDataMapper.ts index de97f5b..b3aac29 100644 --- a/src/utils/profileDataMapper.ts +++ b/src/utils/profileDataMapper.ts @@ -347,7 +347,8 @@ function valueToStringArray(value: unknown): string[] { if (!value) return []; if (Array.isArray(value)) { - return value.map(v => String(v)).filter(v => v.trim() !== ''); + // Deduplicate values + return [...new Set(value.map(v => String(v)).filter(v => v.trim() !== ''))]; } if (typeof value === 'string' && value.trim()) {