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:
parent
07e8e318ee
commit
8e032b930b
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ export default function StorePage(): JSX.Element {
|
|||
setSearchData(res);
|
||||
setData(res);
|
||||
setLoading(false);
|
||||
setErrorApiKey(true);
|
||||
})
|
||||
.catch((err) => {
|
||||
setSearchData([]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue