Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: QR Code Shows Last Stored Data Instead of Handling Empty Input Properly #1699

Open
Devmoni opened this issue Jan 9, 2025 · 2 comments

Comments

@Devmoni
Copy link

Devmoni commented Jan 9, 2025

Description:

In the QR Code activity, when the username is cleared and "Go" is pressed, the generated QR code displays the last stored data from the database.

Expected Behavior:

I think it should either prompt the user with "Enter valid text" or display a blank QR code when the input is empty.

Steps to Reproduce:

Enter a username and generate a QR.
Clear the username field.
Press "Go."

Current Behavior:

QR shows the last stored data from the database.

@llaske
Copy link
Owner

llaske commented Jan 9, 2025

When the field is empty, it generate an empty QR Code it's not wrong.

@Devmoni
Copy link
Author

Devmoni commented Jan 10, 2025

Apologies for the confusion during my testing. It was displaying the last saved output earlier.
However, we could also consider prompting the user to enter some text for QR generation. This might be helpful, especially for younger children.
Thanks...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants