Skip to content

Commit

Permalink
fix: use lookup_secret
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 19, 2023
1 parent c159a41 commit 2083016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/react-components/ory/user-settings-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type UserSettingsFlowType =
| "totp"
| "webauthn"
| "oidc"
| "lookupSecret"
| "lookup_secret"

export type UserSettingsCardProps = {
flow: SettingsFlow
Expand Down Expand Up @@ -92,7 +92,7 @@ export const UserSettingsCard = ({
$flow = <WebAuthnSettingsSection flow={flow} />
}
break
case "lookupSecret":
case "lookup_secret":
if (hasLookupSecret(flow.ui.nodes)) {
hasFlow = true
cardTitle =
Expand Down
4 changes: 2 additions & 2 deletions src/react-components/ory/user-settings-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const nav = ({
id: "settings.navigation-backup-codes",
defaultMessage: "2FA Backup Codes",
}),
href: "#lookupSecret",
href: "#lookup_secret",
iconLeft: "shield",
testId: "backup-codes",
},
Expand Down Expand Up @@ -151,7 +151,7 @@ const body = ({
"profile",
"password",
"oidc",
"lookupSecret",
"lookup_secret",
"webauthn",
"totp",
] as UserSettingsFlowType[]
Expand Down

0 comments on commit 2083016

Please sign in to comment.