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 8d9e444 commit 65c110cCopy full SHA for 65c110c
components/NewsletterSubscribe.tsx
@@ -51,7 +51,7 @@ export default function NewsletterSubscribe({
51
const [email, setEmail] = useState<string>('');
52
const [name, setName] = useState<string>('');
53
const [status, setStatus] = useState<FormStatus>(FormStatus.NORMAL);
54
-
+ const [emailError, setEmailError] = useState<string>('');
55
const { t, ready } = useTranslation('common', { keyPrefix: 'newsletterCTA' });
56
57
const headTextColor = dark ? 'text-white' : '';
@@ -75,8 +75,6 @@ export default function NewsletterSubscribe({
75
return;
76
}
77
setEmailError(''); // Clear error if valid
78
79
- setStatus(FormStatus.LOADING);
80
//end
81
const data = {
82
name,
0 commit comments