diff --git a/src/components/details-card/index.tsx b/src/components/details-card/index.tsx index 28d2b4a..407be68 100644 --- a/src/components/details-card/index.tsx +++ b/src/components/details-card/index.tsx @@ -66,9 +66,7 @@ const ListItem: React.FC<{ skeleton?: boolean; }> = ({ icon, title, value, link, skeleton = false }) => { return ( -
+
{icon} {title}
@@ -102,24 +100,23 @@ const OrganizationItem: React.FC<{ }> = ({ icon, title, value, link, skeleton = false }) => { const renderValue = () => { if (typeof value === 'string') { - return value.split(" ").map((company) => { + return value.split(' ').map((company) => { company = company.trim(); if (!company) return null; if (isCompanyMention(company)) { return ( - {company} ); } else { - return ( - {company} - ); + return {company}; } }); }