From 8e032b930b6af41a1d40a1021c1642b2c7a700b2 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Sat, 28 Oct 2023 17:31:10 -0300 Subject: [PATCH] fix(StorePage): set errorApiKey to true when there is an error fetching data to display an error message to the user --- src/frontend/src/pages/StorePage/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/pages/StorePage/index.tsx b/src/frontend/src/pages/StorePage/index.tsx index 44ff9931a..00a96f31f 100644 --- a/src/frontend/src/pages/StorePage/index.tsx +++ b/src/frontend/src/pages/StorePage/index.tsx @@ -93,6 +93,7 @@ export default function StorePage(): JSX.Element { setSearchData(res); setData(res); setLoading(false); + setErrorApiKey(true); }) .catch((err) => { setSearchData([]);