Skip to content

Commit

Permalink
fix: Handle clearFeedback for ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
kostaspt committed Dec 6, 2024
1 parent 0f3d660 commit f026587
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f026587

Please sign in to comment.