fix(StorePage): update setSearchData to use res.results instead of res to fix search data not being set correctly

fix(StorePage): update setErrorApiKey to true to handle error with API key
This commit is contained in:
anovazzi1 2023-11-07 11:31:06 -03:00
commit 71b3fd4245

View file

@ -92,7 +92,7 @@ export default function StorePage(): JSX.Element {
getStoreComponents(index - 1, size, filterComponent.current)
.then((res) => {
setSearchData(res);
setSearchData(res.results);
getNumberSavedComponents();
setErrorApiKey(true);
})