protect against null

This commit is contained in:
Miodec 2025-12-21 17:55:39 +01:00
parent 76698c77b8
commit d3dfc08b87

View file

@ -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);
},
);