fix(StorePage): set errorApiKey to true when there is an error fetching data to display an error message to the user

This commit is contained in:
anovazzi1 2023-10-28 17:31:10 -03:00
commit 8e032b930b

View file

@ -93,6 +93,7 @@ export default function StorePage(): JSX.Element {
setSearchData(res); setSearchData(res);
setData(res); setData(res);
setLoading(false); setLoading(false);
setErrorApiKey(true);
}) })
.catch((err) => { .catch((err) => {
setSearchData([]); setSearchData([]);