We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eab2e46 commit c3be8feCopy full SHA for c3be8fe
src/components/waitlist-form.tsx
@@ -50,7 +50,7 @@ export function WaitlistForm() {
50
51
const validation = emailSchema.safeParse({ email: trimmedEmail });
52
if (!validation.success) {
53
- toast.error(validation.error.message);
+ toast.error(validation.error.issues[0].message);
54
return;
55
}
56
@@ -88,14 +88,14 @@ export function WaitlistForm() {
88
89
90
},
91
- [email, formState, fetchUserIP],
+ [email, formState, fetchUserIP]
92
);
93
94
const handleEmailChange = useCallback(
95
(e: React.ChangeEvent<HTMLInputElement>) => {
96
setEmail(e.target.value);
97
98
- [],
+ []
99
100
101
const isSubmitting = formState === "submitting";
0 commit comments