Skip to content

Commit 1e44746

Browse files
committed
chore: update TaskChooseOrganization flow part to chooseOrganization only
1 parent f3f9964 commit 1e44746

File tree

2 files changed

+2
-3
lines changed
  • packages/clerk-js/src/ui

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const TaskChooseOrganizationInternal = () => {
3434

3535
return (
3636
<Flow.Root flow='taskChooseOrganization'>
37-
<Flow.Part part={hasExistingResources ? 'chooseOrganization' : 'createOrganization'}>
37+
<Flow.Part part='chooseOrganization'>
3838
<Card.Root>
3939
<Card.Content sx={t => ({ padding: `${t.space.$8} ${t.space.$none} ${t.space.$none}`, gap: t.space.$7 })}>
4040
{isLoading ? (

packages/clerk-js/src/ui/elements/contexts/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ export type FlowMetadata = {
123123
| 'popover'
124124
| 'complete'
125125
| 'accountSwitcher'
126-
| 'chooseOrganization'
127-
| 'createOrganization';
126+
| 'chooseOrganization';
128127
};
129128

130129
const [FlowMetadataCtx, useFlowMetadata] = createContextAndHook<FlowMetadata>('FlowMetadata');

0 commit comments

Comments
 (0)