commit 18682c657b13540c0159e9d6ef255f594c33520c
parent b1eebc222ad82218c565be2b18a19534dffa19b8
Author: Agastya Chandrakant <me@hanabi.in>
Date: Mon, 18 May 2020 07:19:12 +0530
Bad idea, revert
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/comp/autoCompleteText.js b/src/comp/autoCompleteText.js
@@ -21,7 +21,7 @@ function AutoCompleteText({ defaultValue = '', changeValue }) {
val.toLowerCase().includes(input.toLowerCase())
),
];
- } else recommendations = [...suggestions];
+ }
setSuggestions(Array.from(new Set([...recommendations])));
}