diff --git a/src/react-components/ory/helpers/utils.ts b/src/react-components/ory/helpers/utils.ts index 5aba42c83..38270921a 100644 --- a/src/react-components/ory/helpers/utils.ts +++ b/src/react-components/ory/helpers/utils.ts @@ -18,7 +18,7 @@ export const hasTotp = hasGroup("totp") export const hasCode = hasGroup("code") export const hasHiddenIdentifier = (nodes: UiNode[]) => - nodes.some( + nodes?.some( ({ attributes }) => "name" in attributes && attributes.name === "identifier" &&