Skip to content

Commit

Permalink
Refactor last if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
TomRomeo committed Mar 13, 2024
1 parent 427359f commit 44a0730
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/util/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ export async function deleteMember(groupID: string, userID: string) {
deleteRequest(groupMemberRoute(groupID, userID)),
"deleteMemberToastID"
);
if (response.ok) {
mutate(groupMembersRoute(groupID));
}
if (response.ok) mutate(groupMembersRoute(groupID));
return response;
}

Expand Down

0 comments on commit 44a0730

Please sign in to comment.