counter-app icon indicating copy to clipboard operation
counter-app copied to clipboard

[Bug]: Submit button accepting empty feedback

Open akank1410 opened this issue 2 years ago • 4 comments

🐞 Bug Report

📋 Description

Feedback button submitting empty feedback

⚙️ Steps to Reproduce

Steps to reproduce the behavior:

  1. Changes in Review.jsx file
  2. Adding a condition to check if the rating and comment variable is not empty

✔️ Expected Behavior

Only on valid submission, submit button will work.

❌ Actual Behavior

User can submit empty feedback

📷 Screenshots

Image1: Screenshot 2024-10-25 150947

Image2: image

🖥️ Environment (if applicable):

  • OS: (e.g., Windows, macOS, Linux)
  • Browser: (e.g., Chrome, Safari, Firefox)
  • Version: (if relevant)

🔧 Additional Information

akank1410 avatar Oct 25 '24 10:10 akank1410

Hello admin, can you approve this issue and add it under [gssoc-ext][hacktoberfest-accepted] tag.

akank1410 avatar Oct 25 '24 10:10 akank1410

🐞 Bug Report

📋 Description

Feedback button submitting empty feedback

⚙️ Steps to Reproduce

Steps to reproduce the behavior:

  1. Changes in Review.jsx file
  2. Adding a condition to check if the rating and comment variable is not empty

✔️ Expected Behavior

Only on valid submission, submit button will work.

❌ Actual Behavior

User can submit empty feedback

📷 Screenshots

Image1: Screenshot 2024-10-25 150947

Image2: image

🖥️ Environment (if applicable):

  • OS: (e.g., Windows, macOS, Linux)
  • Browser: (e.g., Chrome, Safari, Firefox)
  • Version: (if relevant)

🔧 Additional Information

Okay.I am assigning you this.

param-code avatar Oct 26 '24 09:10 param-code

Hi Admin. I have send a pull request to fix the issue. It is working now. Only if the fields have input, feedback will be submitted, else it will raise an alert.

image image

akank1410 avatar Nov 09 '24 09:11 akank1410

Hi Admin. I have send a pull request to fix the issue. It is working now. Only if the fields have input, feedback will be submitted, else it will raise an alert.

image image

where is your PR??

param-code avatar Nov 09 '24 09:11 param-code