From 6b4b0754e5a564dd51dc7d45f7468789e6315592 Mon Sep 17 00:00:00 2001 From: harsh Date: Mon, 7 Oct 2024 19:46:43 +0530 Subject: [PATCH] chore: Clearing email field after waitlisting the user email --- apps/web/src/components/hero/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/hero/index.tsx b/apps/web/src/components/hero/index.tsx index 0de1595b..b51a919e 100644 --- a/apps/web/src/components/hero/index.tsx +++ b/apps/web/src/components/hero/index.tsx @@ -16,7 +16,7 @@ function Hero(): React.JSX.Element { if (email === '') { toast.custom(() => (
-

Pleasse enter an email address

+

Please enter an email address

)) return @@ -39,6 +39,8 @@ function Hero(): React.JSX.Element { await fetch(`${url}&EMAIL=${email}`, { mode: 'no-cors' }) + setEmail(''); + } catch (error) { // eslint-disable-next-line no-console -- chill console.error(error)