diff --git a/app/dashboard/sites/SitesPage.tsx b/app/dashboard/sites/SitesPage.tsx
index b071bce..41be392 100644
--- a/app/dashboard/sites/SitesPage.tsx
+++ b/app/dashboard/sites/SitesPage.tsx
@@ -56,21 +56,30 @@ export default function SitesPage({ username, name }: SitesPageProps) {
setItemPerPage={setItemPerPage}
/>
-
- {sites.map((site: any) => (
-
- ))}
-
+ {sites.length > 0 ? (
+
+ {sites.map((site: any) => (
+
+ ))}
+
+ ) : (
+
+
+
No Sites Found
+
No sites match your current search criteria
+
+
+ )}
void;
}) {
- const totalPages = Math.ceil(totalItems / itemsPerPage);
+ const totalPages = Math.max(1, Math.ceil(totalItems / itemsPerPage));
+
+ if (totalItems === 0) {
+ return null;
+ }
return (
@@ -25,7 +29,7 @@ export default function Pagination({