Skip to content

Commit

Permalink
fix: Compare splitUsing > 0 instead of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 11, 2020
1 parent 6fec89f commit 4081bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/splitUsing.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const splitUsing = (list, predicate) => {
{ groups: [], items: [] }
);

if (items.length > 1) {
if (items.length > 0) {
return [...groups, items];
}

Expand Down

0 comments on commit 4081bae

Please sign in to comment.