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

@@ -29,7 +29,7 @@ export function SpecializationCard({
}; };
return ( return (
<div className="bg-white rounded-[20px] p-6 text-center flex flex-col border-[0.7px] border-[#E58625]"> <div className="bg-white rounded-[20px] p-6 text-center flex flex-col border-[0.7px] border-[#E58625] h-full">
<div className="flex justify-center mb-3">{icon}</div> <div className="flex justify-center mb-3">{icon}</div>
<h4 className="font-bold text-[#00293D] text-[14px] leading-[17px] mb-4 font-fractul">{title}</h4> <h4 className="font-bold text-[#00293D] text-[14px] leading-[17px] mb-4 font-fractul">{title}</h4>
<div className="flex-1"> <div className="flex-1">

View File

@@ -347,7 +347,8 @@ function valueToStringArray(value: unknown): string[] {
if (!value) return []; if (!value) return [];
if (Array.isArray(value)) { 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()) { if (typeof value === 'string' && value.trim()) {