diff --git a/website/src/components/UsersCell.tsx b/website/src/components/UsersCell.tsx index 5c6f4ce8..b2b04c83 100644 --- a/website/src/components/UsersCell.tsx +++ b/website/src/components/UsersCell.tsx @@ -10,9 +10,7 @@ const UsersCell = () => { // Fetch and save the users. const [users, setUsers] = useState([]); const { isLoading } = useSWR("/api/admin/users", fetcher, { - onSuccess: (data) => { - setUsers(data); - }, + onSuccess: setUsers, }); // Present users in a naive table. diff --git a/website/src/pages/admin/index.tsx b/website/src/pages/admin/index.tsx index e048915e..60d61903 100644 --- a/website/src/pages/admin/index.tsx +++ b/website/src/pages/admin/index.tsx @@ -28,22 +28,6 @@ const AdminIndex = () => { router.push("/"); }, [session, status]); - // While loading, just show something. - if (status === "loading") { - return ( - <> -
-