diff --git a/src/app/agents/page.tsx b/src/app/agents/page.tsx
index ac0a164..42f2625 100644
--- a/src/app/agents/page.tsx
+++ b/src/app/agents/page.tsx
@@ -6,7 +6,7 @@ import { Agent } from "@/types/agent";
import { GET_AGENTS } from "@/utils/graphql_queries";
import { useQuery } from "@apollo/client";
import { Icon } from "@iconify/react";
-import { Button, IconButton } from "@material-tailwind/react";
+import { Alert, Button, IconButton } from "@material-tailwind/react";
import { useState } from "react";
const AgentsPage = () => {
@@ -52,7 +52,20 @@ const AgentsPage = () => {
/>
- {data.agents.map((agent: Agent, i: number) => (
+ {error && (
+
+
+ }
+ className="w-fit"
+ >
+ {error?.message ?? "An error occurred."}
+
+
+ )}
+ {data?.agents.map((agent: Agent, i: number) => (
Crew (Agents):
+ {agentsError && (
+ <>
+
+
+ }
+ className="w-fit"
+ >
+ {agentsError?.message ?? "An error occurred."}
+
+
+ >
+ )}
{isEdit ? (
loading ? (