mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-27 10:31:22 +08:00
protect against null
This commit is contained in:
parent
76698c77b8
commit
d3dfc08b87
1 changed files with 2 additions and 1 deletions
|
|
@ -518,7 +518,8 @@ $(".pageTribe .tribePage.lobby .visibilityAndName .roomName .textButton").on(
|
|||
"click",
|
||||
() => {
|
||||
//TODO proper popup
|
||||
const name = prompt("Enter new room name") as string;
|
||||
const name = prompt("Enter new room name");
|
||||
if (name === null) return;
|
||||
tribeSocket.out.user.setName(name);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue