From 2083016101a9da120cc803d0c6493079869852e6 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Tue, 19 Dec 2023 09:55:26 +0100 Subject: [PATCH] fix: use lookup_secret --- src/react-components/ory/user-settings-card.tsx | 4 ++-- src/react-components/ory/user-settings-screen.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/react-components/ory/user-settings-card.tsx b/src/react-components/ory/user-settings-card.tsx index 4b205a768..a6e855f97 100644 --- a/src/react-components/ory/user-settings-card.tsx +++ b/src/react-components/ory/user-settings-card.tsx @@ -29,7 +29,7 @@ export type UserSettingsFlowType = | "totp" | "webauthn" | "oidc" - | "lookupSecret" + | "lookup_secret" export type UserSettingsCardProps = { flow: SettingsFlow @@ -92,7 +92,7 @@ export const UserSettingsCard = ({ $flow = } break - case "lookupSecret": + case "lookup_secret": if (hasLookupSecret(flow.ui.nodes)) { hasFlow = true cardTitle = diff --git a/src/react-components/ory/user-settings-screen.tsx b/src/react-components/ory/user-settings-screen.tsx index 34c1183ba..87814818b 100644 --- a/src/react-components/ory/user-settings-screen.tsx +++ b/src/react-components/ory/user-settings-screen.tsx @@ -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", }, @@ -151,7 +151,7 @@ const body = ({ "profile", "password", "oidc", - "lookupSecret", + "lookup_secret", "webauthn", "totp", ] as UserSettingsFlowType[]