diff --git a/src/pages/(admin)/BatchCreateUser.tsx b/src/pages/(admin)/BatchCreateUser.tsx index 5f31c7c3..8b97d6a2 100644 --- a/src/pages/(admin)/BatchCreateUser.tsx +++ b/src/pages/(admin)/BatchCreateUser.tsx @@ -53,7 +53,7 @@ const USER_TYPE_PERMISSIONS: { }, admin: { perm: "createCodeAdmin", - list: ["student", "teacher", "agent", "corporate", "admin", "mastercorporate"], + list: ["student", "teacher", "agent", "corporate", "mastercorporate"], }, developer: { perm: undefined, @@ -161,7 +161,7 @@ export default function BatchCreateUser({user, users, permissions, onFinish}: Pr setIsLoading(true); try { - await axios.post("/api/batch_users", { users: newUsers.map(user => ({...user, type, expiryDate})) }); + await axios.post("/api/batch_users", {users: newUsers.map((user) => ({...user, type, expiryDate}))}); toast.success(`Successfully added ${newUsers.length} user(s)!`); onFinish(); } catch {