fix: Deduplicate array values in profile data mapping and ensure specialization cards fill full height.
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user