a tool for shared writing and social publishing

prevent dbl clicking pub form

+1
+1
app/lish/createPub/CreatePubForm.tsx
··· 39 39 <form 40 40 className="flex flex-col gap-3" 41 41 onSubmit={async (e) => { 42 + if (formState !== "normal") return; 42 43 e.preventDefault(); 43 44 if (!subdomainValidator.safeParse(domainValue).success) return; 44 45 setFormState("loading");