@@ -112,70 +31,37 @@ function Solicitudes() {
);
}
- if (error) {
+ if (error || requests === undefined) {
return (
-
{error}
+
{error?.message}
);
}
return (
<>
- {/* FILTROS */}
-
-
Filtros
-
-
-
-
+
+
+ {requests.length === 0 ? (
+
+
+ No se encontraron solicitudes de ayuda correspondientes a tu cuenta.
+
+
+
+
+ Solicitar ayuda
+
+
+ ) : (
+ requests.map((caso) =>
)
+ )}
-
- {data.length === 0 ? (
-
-
- No se encontraron solicitudes que coincidan con los filtros.
-
-
- ) : (
- data.map((caso) =>
)
- )}
-
-
>
);
}
diff --git a/src/app/solicitudes/[id]/page.tsx b/src/app/solicitudes/[id]/page.tsx
index 3192aae3..0b3d313d 100644
--- a/src/app/solicitudes/[id]/page.tsx
+++ b/src/app/solicitudes/[id]/page.tsx
@@ -54,7 +54,7 @@ export default function CasoDetalle() {
Volver
-
+
);
}
diff --git a/src/app/solicitudes/page.tsx b/src/app/solicitudes/page.tsx
index 218fd8b7..77f8db06 100644
--- a/src/app/solicitudes/page.tsx
+++ b/src/app/solicitudes/page.tsx
@@ -58,7 +58,7 @@ export default function ListaSolicitudes() {
) : (
- requests.map((caso) =>