diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index a2d44f5..25a5ae7 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -11,7 +11,7 @@ async function getData() { } export default function AdminPage() { - const [data, setData] = React.useState<(User & { payment: Payment })[]>([]); + const [data, setData] = React.useState<(User & { payment: Payment[] })[]>([]); React.useEffect(() => { getData().then(setData);