Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Fix removing oneself from the team not working (#1657)
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru authored Mar 10, 2024
1 parent 364a4fa commit fe3e4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/teams.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const acceptTeamInvite = async (teamId) => {
}
export const removeSelfFromTeam = async (teamId) => {
const auth = await useAuth()
await removeTeamMember(teamId, auth.user.id)
await removeTeamMember(teamId, auth.value.user.id)
}
export const removeTeamMember = async (teamId, userId) => {
await useBaseFetch(`team/${teamId}/members/${userId}`, {
Expand Down

0 comments on commit fe3e4ed

Please sign in to comment.