Skip to content

Commit 016766c

Browse files
committed
refactor(ui): read the current organization via the base hook in FooterReset
Switches the wizard-wide reset entry from useOrganization to the base organization hook so the slot does not trigger the enable-organizations developer prompt on instances without orgs enabled.
1 parent be33cb8 commit 016766c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/ui/src/components/ConfigureSSO/elements

packages/ui/src/components/ConfigureSSO/elements/Step.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useOrganization } from '@clerk/shared/react';
1+
import { __internal_useOrganizationBase } from '@clerk/shared/react';
22
import { type PropsWithChildren, type ReactNode, useState } from 'react';
33

44
import {
@@ -194,7 +194,7 @@ FooterContinue.displayName = 'Step.Footer.Continue';
194194

195195
const FooterReset = (): JSX.Element | null => {
196196
const { enterpriseConnection } = useConfigureSSO();
197-
const { organization } = useOrganization();
197+
const organization = __internal_useOrganizationBase();
198198
const [isOpen, setIsOpen] = useState(false);
199199

200200
if (!enterpriseConnection) {

0 commit comments

Comments
 (0)