diff --git a/apps/client/pages/admin/email-queues/index.tsx b/apps/client/pages/admin/email-queues/index.tsx index 837337bfe..ce6f7e442 100644 --- a/apps/client/pages/admin/email-queues/index.tsx +++ b/apps/client/pages/admin/email-queues/index.tsx @@ -3,7 +3,7 @@ import Link from "next/link"; import { useEffect, useState } from "react"; export default function EmailQueues() { - const [queues, setQueues] = useState(); + const [queues, setQueues]: any = useState(); async function fetchQueues() { const res = await fetch(`/api/v1/email-queues/all`, { @@ -63,7 +63,7 @@ export default function EmailQueues() {
- {queues !== undefined && queues.length > 0 && ( + {queues && queues.length > 0 && ( @@ -94,7 +94,7 @@ export default function EmailQueues() { - {queues.map((item) => ( + {queues && queues.map((item) => (
{item.name}