Addressing review comments

This commit is contained in:
Keith Stevens
2023-01-07 19:43:10 +09:00
parent b70c638f7c
commit 8f459d9aae
2 changed files with 2 additions and 22 deletions
+1 -3
View File
@@ -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.