diff --git a/src/server/api/endpoints/users/groups/transfer.ts b/src/server/api/endpoints/users/groups/transfer.ts index 3baa182ab..ca0ab9ab2 100644 --- a/src/server/api/endpoints/users/groups/transfer.ts +++ b/src/server/api/endpoints/users/groups/transfer.ts @@ -74,7 +74,7 @@ export default define(meta, async (ps, me) => { userId: user.id }); - if (!joining) { + if (joining == null) { throw new ApiError(meta.errors.noSuchGroupMember); }