a tool for shared writing and social publishing

add timeout to createPub redirect

+5 -2
+5 -2
app/lish/createPub/CreatePubForm.tsx
··· 43 43 iconFile: logoFile, 44 44 subdomain: domainValue, 45 45 }); 46 - if (data?.publication) 47 - router.push(`${getPublicationURL(data.publication)}/dashboard`); 46 + // Show a spinner while this is happening! Maybe a progress bar? 47 + setTimeout(() => { 48 + if (data?.publication) 49 + router.push(`${getPublicationURL(data.publication)}/dashboard`); 50 + }, 500); 48 51 }} 49 52 > 50 53 <div className="flex flex-col items-center mb-4 gap-2">