Fix removing oneself from the team not working (#1657)

This commit is contained in:
Sasha Sorokin 2024-03-10 21:03:35 +01:00 committed by GitHub
parent 364a4faa75
commit fe3e4edb04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}`, {