Skip to content

Commit

Permalink
chore: Clearing email field after waitlisting the user email
Browse files Browse the repository at this point in the history
  • Loading branch information
bansal-harsh-2504 committed Oct 7, 2024
1 parent 596bd1a commit 6b4b075
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/web/src/components/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function Hero(): React.JSX.Element {
if (email === '') {
toast.custom(() => (
<div className="text-brandBlue border-brandBlue/20 w-[90vw] rounded-lg border bg-[#852b2c] p-2 shadow-2xl backdrop-blur-3xl md:w-[20vw]">
<p className="text-sm">Pleasse enter an email address </p>
<p className="text-sm">Please enter an email address </p>
</div>
))
return
Expand All @@ -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)
Expand Down

0 comments on commit 6b4b075

Please sign in to comment.