Skip to content

Commit 7a782e6

Browse files
committed
games: Filter that by room ID, too
1 parent 717a5b8 commit 7a782e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ps/commands/games/meta.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const command: PSCommand = {
2626
<>
2727
<hr />
2828
{Object.values(Games)
29-
.filter(Game => Object.keys(PSGames[Game.meta.id] ?? {}).length > 0)
29+
.filter(Game => Object.values(PSGames[Game.meta.id] ?? {}).filter(game => game.room.id === message.target.id).length > 0)
3030
.map(Game => (
3131
<>
3232
<h3>{Game.meta.name}</h3>

0 commit comments

Comments
 (0)