adding redirect after waitlist success
This commit is contained in:
@@ -28,6 +28,10 @@ const Waitlist: React.FC = () => {
|
|||||||
toast({ title: "Success", description: "You've been added to the waitlist." });
|
toast({ title: "Success", description: "You've been added to the waitlist." });
|
||||||
setName("");
|
setName("");
|
||||||
setEmail("");
|
setEmail("");
|
||||||
|
// redirect to home after 0.5 seconds
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.href = "/";
|
||||||
|
}, 500);
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
toast({ title: "Error", description: err?.message ?? String(err) });
|
toast({ title: "Error", description: err?.message ?? String(err) });
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user