File tree Expand file tree Collapse file tree
packages/clerk-js/src/ui/components/SessionTasks/tasks/TaskChooseOrganization Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @clerk/clerk-js ' : patch
3+ ---
4+
5+ Fix "You must belong to an organization" screen showing after accepting an organization invitation
Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ const TaskChooseOrganizationInternal = () => {
2525 userSuggestions ?. isLoading ||
2626 organizationCreationDefaults ?. isLoading ;
2727 const hasExistingResources = ! ! ( userMemberships ?. count || userInvitations ?. count || userSuggestions ?. count ) ;
28- const isOrganizationCreationDisabled = ! isLoading && ! user ?. createOrganizationEnabled && ! hasExistingResources ;
28+ const isOrganizationCreationDisabled =
29+ ! isLoading &&
30+ ! user ?. createOrganizationEnabled &&
31+ user ?. organizationMemberships ?. length === 0 &&
32+ ! hasExistingResources ;
2933
3034 if ( isOrganizationCreationDisabled ) {
3135 return < OrganizationCreationDisabledScreen /> ;
You can’t perform that action at this time.
0 commit comments