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:
cristhianzl 2023-10-24 17:57:47 -03:00
commit af54fa3cca

View file

@ -74,7 +74,7 @@ export default function StorePage(): JSX.Element {
const handleSearch = (inputText: string) => {
searchComponent(inputText).then(
(res) => {
console.log(res);
setSearchData(res);
},
(error) => {}
);