Skip to content

Catch invalid roomID  #140

@kolbymckeown

Description

@kolbymckeown

Describe the bug
When a user navigates to a URL with an invalid / nonexistant roomID ( /room/voting-room/{id-doesnt-exist} ) the "Waiting for data..." appears instead of a page saying the roomID is invalid

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to URL: http://localhost:3000/room/voting-room/{some-id-that-doesn't-exist}
  2. Observe the page "Waiting for data..."

Expected behavior
A page / modal should appear displaying "Invalid Room Id", that has an input to type in the valid Room Id, and on Submit would redirect user to the /room/voting-room/{roomID}

Screenshots
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcssThis task involves CSS knowledgereactThis task involves React knowledge

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions