From f02658782fd6ef1342d02f4e86ff803b643b7339 Mon Sep 17 00:00:00 2001 From: Konstantinos Pittas Date: Fri, 6 Dec 2024 14:57:49 +0200 Subject: [PATCH] fix: Handle clearFeedback for ticket --- .../clerk-js/src/ui/components/SignUp/SignUpStart.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx b/packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx index 241b2ef8f3..acdd3e35c1 100644 --- a/packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx +++ b/packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx @@ -216,7 +216,14 @@ function _SignUpStart(): JSX.Element { if (fields.ticket) { const noop = () => {}; // fieldsToSubmit: Constructing a fake fields object for strategy. - fieldsToSubmit.push({ id: 'strategy', value: 'ticket', setValue: noop, onChange: noop, setError: noop } as any); + fieldsToSubmit.push({ + id: 'strategy', + value: 'ticket', + clearFeedback: noop, + setValue: noop, + onChange: noop, + setError: noop, + } as any); } // In case of emailOrPhone (both email & phone are optional) and neither of them is provided,