From 2314b2c0aa5a49a4a0614bde6a23e179a5561b1e Mon Sep 17 00:00:00 2001 From: ritz078 Date: Mon, 6 May 2019 16:53:19 +0530 Subject: [PATCH] fixes --- src/components/DotSeparator.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/DotSeparator.tsx b/src/components/DotSeparator.tsx index fcffa01..6140598 100644 --- a/src/components/DotSeparator.tsx +++ b/src/components/DotSeparator.tsx @@ -24,15 +24,17 @@ const DotSeparator: React.FunctionComponent = ({ textProps, color = colors.gray.dark }) => { + const _texts = texts.filter(Boolean); + return ( <> - {texts.filter(Boolean).map((text, i) => ( + {_texts.map((text, i) => ( {text} - {i < texts.length - 1 && ( + {i < _texts.length - 1 && (