diff --git a/components/pages/posts/[slug]/SubscribeForm.tsx b/components/pages/posts/[slug]/SubscribeForm.tsx index c73f5f3..f1069fc 100644 --- a/components/pages/posts/[slug]/SubscribeForm.tsx +++ b/components/pages/posts/[slug]/SubscribeForm.tsx @@ -28,6 +28,9 @@ export function SubscribeForm(): JSX.Element { body: JSON.stringify({ email, referringUrl: window.location.href }) }) const { message } = await res.json() + if (res.ok) { + ;(e.target as HTMLFormElement).reset() + } setFormState({ ok: res.ok, message