Skip to content

Commit 99f8a1c

Browse files
authored
fix(clerk-js): Display email address validation errors in <Waitlist /> component (clerk#5243)
1 parent 02defed commit 99f8a1c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/poor-insects-yell.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Display validation error in `<Waitlist />` for email address field correctly

packages/clerk-js/src/ui/components/Waitlist/WaitlistForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const WaitlistForm = (props: WaitlistFormProps) => {
4747
return;
4848
})
4949
.catch(error => {
50-
handleError(error, [], card.setError);
50+
handleError(error, [formState.emailAddress], card.setError);
5151
})
5252
.finally(() => {
5353
status.setIdle();

0 commit comments

Comments
 (0)