JiyaGupta-cs / ShopNex

React Ecommerce App
https://shopnex.vercel.app
90 stars 186 forks source link

Email Validation Needed for Subscription Form on Home Page #278

Open PranavKeshav24 opened 2 months ago

PranavKeshav24 commented 2 months ago

Issue Description

The ‘Subscribe to get exclusive offers’ email form on the home page currently does not validate the email addresses entered by users. This could lead to invalid email addresses being submitted.

Steps to Reproduce

  1. Go to the website.
  2. Navigate to the home page.
  3. Find the ‘Subscribe to get exclusive offers’ email form.
  4. Enter an invalid email address and submit the form.
  5. Notice that the form accepts the invalid email address.

Expected Behavior

The form should validate the email addresses entered by users. If a user enters an invalid email address and tries to submit the form, an error message should be displayed, and the form should not be submitted.

Actual Behavior

The form accepts any input, even if it’s not a valid email address. There is no error message displayed when an invalid email address is entered.

Screenshots

image

Please assign me this issue. I am a contributor for GSSoC’ 24. I would love to work on this issue.

niteshbca commented 1 month ago

@PranavKeshav24 please assign to me task.

Praharshitha167 commented 3 weeks ago

@PranavKeshav24 please assign it to me