aaspinwall / collab

Collab project: We're currently building a decision maker app with Next.js on the frontend and graphQL / faunaDB on the backend.
https://collab-git-main.aaspinwall.vercel.app/
MIT License
5 stars 14 forks source link

Catch invalid roomID #140

Open kolbymckeown opened 3 years ago

kolbymckeown commented 3 years ago

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