Closed thkim1011 closed 7 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
downforacross.com | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 22, 2023 7:11am |
Looks good! Tested on my iPhone by joining a game on safari and chrome; on chrome I entered the chat room and there were no empty names
this bug has been around forever. Appreciate the fix! @thkim1011
Thank you!!
This fixes the bug where mobile users don't get assigned a username until they open the chat. This happens because the usernames are initialized in the
Chat
component, but for mobile, theChat
component is not mounted until it is opened.This PR fixes this issue by creating an
initialUsername
and updating the user's username to this value when theGame
component mounts.This fixes #272.