From 408635f255368016b72965e549b909a3a144d15c Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Mon, 27 Sep 2021 02:46:34 -0700 Subject: [PATCH] Fix search shorthand --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 2d55d69..4047a8c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -135,7 +135,7 @@ const App = (_props) => { }; const handleSearch = (direction: SearchDirection) => { - const searchTerm = convertSearchBoxShorthand(searchBoxInput, conlang); + const searchTerm = direction === SearchDirection.ToEnglish ? convertSearchBoxShorthand(searchBoxInput, conlang) : searchBoxInput; if (searchTerm === "") { setSearchResults(null); setSearchTerm(null);