Skip to content

Commit e9cab26

Browse files
committed
Add changeset
1 parent 3b32297 commit e9cab26

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/fuzzy-hotels-decide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Fix "You must belong to an organization" screen showing when user has existing memberships, invitations or suggestions

packages/clerk-js/src/ui/components/SessionTasks/tasks/TaskChooseOrganization/__tests__/TaskChooseOrganization.test.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import { describe, expect, it } from 'vitest';
33

44
import { bindCreateFixtures } from '@/test/create-fixtures';
55
import { render } from '@/test/utils';
6-
import { createFakeUserOrganizationMembership } from '@/ui/components/OrganizationSwitcher/__tests__/test-utils';
6+
import {
7+
createFakeUserOrganizationMembership,
8+
createFakeUserOrganizationSuggestion,
9+
} from '@/ui/components/OrganizationSwitcher/__tests__/test-utils';
710

811
import { TaskChooseOrganization } from '..';
912

@@ -265,6 +268,7 @@ describe('TaskChooseOrganization', () => {
265268
f.withForceOrganizationSelection();
266269
f.withUser({
267270
create_organization_enabled: false,
271+
tasks: [{ key: 'choose-organization' }],
268272
});
269273
});
270274

0 commit comments

Comments
 (0)