Jacob-Griffin / TelephonePictionary2.0

New version of blowyourfaceoff.com using more modern web technology than php and raw javascript
0 stars 0 forks source link

Fix last one in #44

Closed Jacob-Griffin closed 1 month ago

Jacob-Griffin commented 1 month ago

For some reason, the last person to get auto submitted doesn't properly check when the round moves on. Since they do see the new round number and the new timer, this must be a problem with watching the "waiting" variable

Jacob-Griffin commented 1 month ago

So it kinda was. The problem was that after submitting a round, the round data synced before we set "The round we just finished was the one in round data", so it was saying the last one in finished the next round. Came with the content safety changes.

Just changed it so it stashes the current round before sending the result, then setting the stashed round after a successful submit. Seems to fix it