refactor(StorePage): replace console.log with setSearchData to update search data in the component state
The console.log statement was replaced with setSearchData to update the search data in the component state. This change improves the functionality of the StorePage component by correctly updating the search data when a search is performed.
This commit is contained in:
parent
e59d20e3f2
commit
af54fa3cca
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ export default function StorePage(): JSX.Element {
|
|||
const handleSearch = (inputText: string) => {
|
||||
searchComponent(inputText).then(
|
||||
(res) => {
|
||||
console.log(res);
|
||||
setSearchData(res);
|
||||
},
|
||||
(error) => {}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue