From e47510f91270a906ab2e8585cb362b25e9baea8f Mon Sep 17 00:00:00 2001 From: Nikhil Nawgiri Date: Sun, 27 Oct 2024 12:47:53 +0100 Subject: [PATCH] Add typing for search result state hook value --- fe/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/src/App.tsx b/fe/src/App.tsx index 990b890..a631d29 100644 --- a/fe/src/App.tsx +++ b/fe/src/App.tsx @@ -7,7 +7,7 @@ import './App.css' function App() { const [searchString, setSearchString] = useState(""); - const [searchResults, setSearchResults] = useState([]); + const [searchResults, setSearchResults] = useState<{}[]>([]); const [itemChoiceByUser, setItemChoiceByUser] = useState({}); const [count, setCount] = useState(0)