Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ritz078 committed May 6, 2019
1 parent 9e4d58d commit 2314b2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/DotSeparator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@ const DotSeparator: React.FunctionComponent<DotSeparatorProps> = ({
textProps,
color = colors.gray.dark
}) => {
const _texts = texts.filter(Boolean);

return (
<View style={styles.container}>
<>
{texts.filter(Boolean).map((text, i) => (
{_texts.map((text, i) => (
<Fragment key={i}>
<Text color={color} {...textProps}>
{text}
</Text>
{i < texts.length - 1 && (
{i < _texts.length - 1 && (
<View style={styles.dotContainer}>
<Icon size={dotSize} color={dotColor} name="dot" />
</View>
Expand Down

0 comments on commit 2314b2c

Please sign in to comment.