gcpreston / cuberacer_live

🧩 Twisty puzzle racing platform
https://cuberacer.io
0 stars 0 forks source link

Don't set usersPage to less than 1 #97

Closed gcpreston closed 2 years ago

gcpreston commented 2 years ago

Sometimes, upon first entering a room, the times table would be empty. This was because Presence would not have registered the user that just joined the room yet, so the number of users would be 0, and the conditional changed in this PR would set the users page to 0 because that was the number of pages. However, there should never be a case where someone is in the room and there are 0 pages, so this conditional is edited to not do this when the current user hasn't been taken into account.