Skip to content

Commit

Permalink
fix: do not render empty string as accordion description (#2831)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunohkbx authored Jul 28, 2021
1 parent 60e99dd commit f03f0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/List/ListAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const ListAccordion = ({
>
{title}
</Text>
{description && (
{description ? (
<Text
selectable={false}
numberOfLines={descriptionNumberOfLines}
Expand All @@ -229,7 +229,7 @@ const ListAccordion = ({
>
{description}
</Text>
)}
) : null}
</View>
<View
style={[styles.item, description ? styles.multiline : undefined]}
Expand Down

0 comments on commit f03f0c8

Please sign in to comment.