diff --git a/packages/elements-react/src/components/form/nodes/input.tsx b/packages/elements-react/src/components/form/nodes/input.tsx index e0c88ecd..cf5d8ffd 100644 --- a/packages/elements-react/src/components/form/nodes/input.tsx +++ b/packages/elements-react/src/components/form/nodes/input.tsx @@ -65,7 +65,7 @@ export const NodeInput = ({ const isPinCodeInput = (attrs.name === "code" && node.group === "code") || (attrs.name === "totp_code" && node.group === "totp") - const isResend = attrs.name === "resend" && node.group === "code" + const isResend = node.meta.label?.id === 1070008 switch (nodeType) { case UiNodeInputAttributesTypeEnum.Submit: diff --git a/packages/elements-react/src/theme/default/components/form/pin-code-input.tsx b/packages/elements-react/src/theme/default/components/form/pin-code-input.tsx index 45b5b417..316d2a18 100644 --- a/packages/elements-react/src/theme/default/components/form/pin-code-input.tsx +++ b/packages/elements-react/src/theme/default/components/form/pin-code-input.tsx @@ -18,25 +18,21 @@ export const DefaultPinCodeInput = ({ attributes }: OryNodeInputProps) => { const value = watch(name) return ( -
- - - {[...Array(elements)].map((_, index) => ( - - ))} - - -
+ + {[...Array(elements)].map((_, index) => ( + + ))} + + ) }