Fix search shorthand

This commit is contained in:
Greg Shuflin 2021-09-27 02:46:34 -07:00
parent ac8839ec67
commit 408635f255

View File

@ -135,7 +135,7 @@ const App = (_props) => {
}; };
const handleSearch = (direction: SearchDirection) => { const handleSearch = (direction: SearchDirection) => {
const searchTerm = convertSearchBoxShorthand(searchBoxInput, conlang); const searchTerm = direction === SearchDirection.ToEnglish ? convertSearchBoxShorthand(searchBoxInput, conlang) : searchBoxInput;
if (searchTerm === "") { if (searchTerm === "") {
setSearchResults(null); setSearchResults(null);
setSearchTerm(null); setSearchTerm(null);