Skip to content

Commit 18b0964

Browse files
committed
fix(ui): Add missing noop methods to unsafeMetadata field in SignUpStart
1 parent 4c44aa6 commit 18b0964

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

packages/ui/src/components/SignUp/SignUpStart.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,15 @@ function SignUpStartInternal(): JSX.Element {
259259
}, [] as Array<FormControlState>);
260260

261261
if (unsafeMetadata) {
262-
fieldsToSubmit.push({ id: 'unsafeMetadata', value: unsafeMetadata } as any);
262+
const noop = () => {};
263+
fieldsToSubmit.push({
264+
id: 'unsafeMetadata',
265+
value: unsafeMetadata,
266+
clearFeedback: noop,
267+
setValue: noop,
268+
onChange: noop,
269+
setError: noop,
270+
} as any);
263271
}
264272

265273
if (fields.ticket || hasExistingSignUpWithTicket) {

0 commit comments

Comments
 (0)