Skip to content

Commit

Permalink
filter out currently ongoing swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
TechStudent10 committed Oct 27, 2024
1 parent ce84b37 commit dbbcabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/handlers/lobby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const lobbyHandlers: Handlers = {
socket,
Packet.RecievePublicLobbiesPacket,
{ lobbies: Object.values(state.lobbies)
.filter((lobby) => lobby.settings.isPublic)
.filter((lobby) => lobby.settings.isPublic && !Object.keys(state.swaps).includes(lobby.code))
.sort((a, b) => b.accounts.length - a.accounts.length) }
)
}
Expand Down

0 comments on commit dbbcabc

Please sign in to comment.