mrsudarshanrai / QR-code-generator

This is a simple web code to generate QR code,powered by chart.apis.google
https://mrsudarshanrai.github.io/QR-code-generator/
MIT License
8 stars 8 forks source link

Handling Empty Input Fields #9

Closed ayushichoudhary-19 closed 1 year ago

ayushichoudhary-19 commented 1 year ago

Description:

The current implementation of the project does not handle empty input fields gracefully. When a user leaves the QR text or dimension input fields empty and clicks the button, the project proceeds to generate a QR code and download link with empty or undefined values. This behavior can lead to unexpected results and a poor user experience.

Expected Behavior:

When a user attempts to generate a QR code with empty input fields, the project should:

Steps to Reproduce:

  1. Open the project with a web browser.
  2. Leave the QR text input field empty.
  3. Leave the dimension input field empty.
  4. Click the button meant to generate the QR code.
  5. Observe that the project proceeds to generate a QR code and download link without handling the empty input fields.

Note:

I would like to work on this issue. Please assign it to me.

mrsudarshanrai commented 1 year ago

@ayushichoudhary-19
Thanks for your interest . This issue is now assigned to you. Looking forward to your contributions. Happy hacking! 🚀

mrsudarshanrai commented 1 year ago

https://github.com/mrsudarshanrai/QR-code-generator/pull/10

ayushichoudhary-19 commented 1 year ago

Can you please tag this issue as hacktoberfest and hacktoberfest-accepted?