Skip to content

Commit

Permalink
updated helper to the more concise version suggested by frank
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Mar 15, 2020
1 parent 58a893c commit 88210f1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ const NoteDescriptionContainer = styled(EuiFlexItem)`
overflow-y: hidden;
`;

export const isNotEmptyArray = (values: string[]) =>
!isEmpty(values) && values.filter(val => !isEmpty(val)).length > 0;
export const isNotEmptyArray = (values: string[]) => !isEmpty(values.join(''));

const EuiBadgeWrap = styled(EuiBadge)`
.euiBadge__text {
Expand Down

0 comments on commit 88210f1

Please sign in to comment.