From 58f6eea4c438e9f79a07c1408d6d8db3fb7c8ada Mon Sep 17 00:00:00 2001 From: Valentin Porcellini Date: Fri, 6 Sep 2024 17:05:03 +0200 Subject: [PATCH] Fixed ternary operator --- src/components/NavItems/tools/SemanticSearch/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NavItems/tools/SemanticSearch/index.jsx b/src/components/NavItems/tools/SemanticSearch/index.jsx index fed509d4f..6d6c73e83 100644 --- a/src/components/NavItems/tools/SemanticSearch/index.jsx +++ b/src/components/NavItems/tools/SemanticSearch/index.jsx @@ -239,7 +239,7 @@ const SemanticSearch = () => { setHasUserSubmittedForm(true); setErrorMessage(""); - const urlText = searchString ? text : text; + const urlText = searchString ? searchString : text; let searchResults; try {