maofalt / Transcendence

4 stars 0 forks source link

281 game match creation fixes #320

Closed YoelRidgway closed 5 months ago

YoelRidgway commented 5 months ago

I fixed the problem of missing matchID on first load of the game. For whatever reason the first time you visit the game (either in the create tournament page or in an actual match), websocket query string is not sent. This is fixed by refreshing the page at any point after login. So what I did was apply a full page refresh on login. This fixes the error but is ugly for obvious reasons. I would like to fix it at some point but it is not the priority at the moment and I have a suspicion that it might be due to vite... So maybe it will get fixed automatically in the production environment. Otherwise for now I have fixed the three problems I made this branch to fix (you can see them in the issue comments).