From 256d65974babd17d525ce2a41a5e17136e6ac12e Mon Sep 17 00:00:00 2001 From: Harsh Bansal <107092486+bansal-harsh-2504@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:45:50 +0530 Subject: [PATCH] feat(platform): Clearing email field after waitlisting the user email (#481) --- 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)