Skip to content

Commit

Permalink
fix(Card): remove loosy equality check for children in CardSection
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Jan 17, 2024
1 parent f76ffdc commit 8eb5e6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/orbit-components/src/Card/CardSection/index.tsx
Expand Up @@ -103,7 +103,7 @@ export default function CardSection({
</div>
)}

{children != null && expandable && (
{children && expandable && (
<Expandable expanded={opened} slideID={slideID} labelID={slideID}>
<div className="font-base text-normal text-primary-foreground px-md lm:px-lg w-full leading-normal">
<div className="py-md lm:py-lg border-elevation-flat-border-color border-t">
Expand All @@ -113,7 +113,7 @@ export default function CardSection({
</Expandable>
)}

{children != null && !expandable && (
{children && !expandable && (
<div
className={cx(
"font-base text-normal text-primary-foreground px-md lm:px-lg pb-md lm:pb-lg w-full leading-normal",
Expand Down

0 comments on commit 8eb5e6f

Please sign in to comment.