diff --git a/src/Routes/Dashboard/Dashboard.tsx b/src/Routes/Dashboard/Dashboard.tsx index a9f2117..be81af7 100644 --- a/src/Routes/Dashboard/Dashboard.tsx +++ b/src/Routes/Dashboard/Dashboard.tsx @@ -51,19 +51,21 @@ export default function Dashboard() { ); } - if (logs.error || products.error || lowest_stock_product.isError) { -
Dashboard
+ if (logs.isError || products.isError || lowest_stock_product.isError) { + return ( +Dashboard
++ Error loading dashboard +
+- Error loading dashboard -
-