Skip to content

Commit 88c217a

Browse files
committed
fix: remove description p tag if no description
1 parent b8e234c commit 88c217a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Shared/Components/GenericInfoCard/GenericInfoCard.component.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ const GenericInfoCard = ({
6666
</Tooltip>
6767
</div>
6868

69-
<p className="fw-4 fs-12 lh-16 cn-7 m-0 dc__truncate--clamp-3">{description}</p>
69+
{description && (
70+
<p className="fw-4 fs-12 lh-16 cn-7 m-0 dc__truncate--clamp-3">{description}</p>
71+
)}
7072
</div>
7173
</>
7274
)}

0 commit comments

Comments
 (0)