From 4081baeb9e6362ccb89bed96cab0e017cd4868c2 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Thu, 11 Jun 2020 16:20:15 -0700 Subject: [PATCH] fix: Compare splitUsing > 0 instead of 1 --- src/utils/splitUsing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/splitUsing.js b/src/utils/splitUsing.js index 49f13797c..e29621772 100644 --- a/src/utils/splitUsing.js +++ b/src/utils/splitUsing.js @@ -10,7 +10,7 @@ const splitUsing = (list, predicate) => { { groups: [], items: [] } ); - if (items.length > 1) { + if (items.length > 0) { return [...groups, items]; }