fix: Deduplicate array values in profile data mapping and ensure specialization cards fill full height.

This commit is contained in:
pradeepkumar
2026-03-19 17:36:53 +05:30
parent 19b90285da
commit 8a9f1f2325
2 changed files with 3 additions and 2 deletions

View File

@@ -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()) {