diff --git a/pages/teams/[teamid]/admin.tsx b/pages/teams/[teamid]/admin.tsx
index 46ed1ce..5707334 100644
--- a/pages/teams/[teamid]/admin.tsx
+++ b/pages/teams/[teamid]/admin.tsx
@@ -144,7 +144,9 @@ function TeamAdmin() {
}
}
- async function handleDeleteTeamMember(teamMemberId: string) {
+ async function handleDeleteTeamMember(e, teamMemberId: string) {
+ e.preventDefault();
+
setLoading(true);
try {
@@ -163,7 +165,8 @@ function TeamAdmin() {
return ;
}
- async function handleInviteTeamMember(teamMemberId: string) {
+ async function handleInviteTeamMember(e, teamMemberId: string) {
+ e.preventDefault();
setLoading(true);
try {
@@ -312,7 +315,7 @@ function TeamAdmin() {
{tmember.status == TeamMemberStatus.deleted &&
teamSpotsRemaining > 0 ? (