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

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

No files matched your search

+2 -1
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()) {