Skip to content

Commit

Permalink
chore: u
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Feb 26, 2025
1 parent ab5a314 commit ad17cc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions packages/elements-react/src/components/card/card-two-step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,16 @@ export function OryTwoStepCard() {
}
}

const showOidc =
hasOidc &&
(formState.current !== "method_active" || formState.method === "oidc")

return (
<OryCard>
<OryCardHeader />
<OryCardContent>
<OryCardValidationMessages />
{formState.current !== "method_active" && hasOidc && (
<OryFormSocialButtonsForm />
)}
{showOidc && <OryFormSocialButtonsForm />}
<OryForm onAfterSubmit={handleAfterFormSubmit}>
<Form.Group>
{formState.current === "provide_identifier" && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const NodeInput = ({
case UiNodeInputAttributesTypeEnum.Submit:
case UiNodeInputAttributesTypeEnum.Button:
if (isSocial) {
return <Node.OidcButton attributes={attrs} node={node} />
return null

Check warning on line 75 in packages/elements-react/src/components/form/nodes/input.tsx

View check run for this annotation

Codecov / codecov/patch

packages/elements-react/src/components/form/nodes/input.tsx#L75

Added line #L75 was not covered by tests
}
if (isResendNode || isScreenSelectionNode) {
return null
Expand Down

0 comments on commit ad17cc9

Please sign in to comment.