Skip to content

Commit

Permalink
fix: do not error on missing nodes (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedrowaihi authored Jul 4, 2024
1 parent f0cb7b3 commit 47a50c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react-components/ory/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" &&
Expand Down

0 comments on commit 47a50c9

Please sign in to comment.