Skip to content

[BUG] Negative number of questions #112

@nishita2104

Description

@nishita2104

Describe the bug
The web app asks infinite questions if a negative number of questions is entered.

To Reproduce
Steps to reproduce the behavior:

  1. Go to main page
  2. Click on 'Let's Start'
  3. Scroll down to 'number of questions'
  4. Enter a negative number, say, -1.
  5. Click 'get set go', then 'start now'.
  6. The app keeps asking questions infinitely.

Expected behavior
It should've displayed an error when an invalid number of questions are entered.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Chrome
  • Version 113

I can fix this by adding a check on the number of questions and displaying an error message wherever required. Please assign this to me under GSSoC'23.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglevel1

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions