Template
chore: formatting
This commit is contained in:
@@ -27,7 +27,7 @@ export const handlers = {
|
||||
leavegame: (event: LobbyLeaveEvent) => {
|
||||
const lobbyStore = useLobbyStore();
|
||||
const playerIndex = lobbyStore.games[event.game.id].players.findIndex(
|
||||
(p) => p.userId == event.player.userId
|
||||
(p) => p.userId == event.player.userId,
|
||||
);
|
||||
lobbyStore.games[event.game.id].players.splice(playerIndex, 1);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user