Skip to content

Commit

Permalink
fix(web): If there is no saved username, use a random name
Browse files Browse the repository at this point in the history
  • Loading branch information
munshkr committed Jan 13, 2024
1 parent 15163d0 commit 0ce0428
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/web/src/routes/session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0ce0428

Please sign in to comment.