From 0ce042853b00b614732b1f7a629b11a1caa39c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Silvani?= Date: Fri, 12 Jan 2024 22:49:06 -0300 Subject: [PATCH] fix(web): If there is no saved username, use a random name --- packages/web/src/routes/session.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/web/src/routes/session.tsx b/packages/web/src/routes/session.tsx index 9e3bbb86..665561a5 100644 --- a/packages/web/src/routes/session.tsx +++ b/packages/web/src/routes/session.tsx @@ -215,6 +215,7 @@ export default function SessionPage() { } else { const savedUsername = query.get("username") || store.get("username"); if (!savedUsername) { + setUsername(generateRandomUserName()); setUsernameDialogOpen(true); } else { setUsername(savedUsername);