Skip to content

Commit 717a5b8

Browse files
committed
games: Only show games in games in ,games that have games of the game
1 parent 5935a1e commit 717a5b8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ps/commands/games/meta.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { renderMenu } from '@/ps/games/menus';
44
import type { PSCommand } from '@/types/chat';
55
import type { HTMLopts } from 'ps-client/classes/common';
66
import type { ReactElement } from 'react';
7+
import { PSGames } from '@/cache';
78

89
export const command: PSCommand = {
910
name: 'games',
@@ -25,6 +26,7 @@ export const command: PSCommand = {
2526
<>
2627
<hr />
2728
{Object.values(Games)
29+
.filter(Game => Object.keys(PSGames[Game.meta.id] ?? {}).length > 0)
2830
.map(Game => (
2931
<>
3032
<h3>{Game.meta.name}</h3>

0 commit comments

Comments
 (0)