diff --git a/server/src/controllers/games.controller.ts b/server/src/controllers/games.controller.ts index fcec918..3c57013 100644 --- a/server/src/controllers/games.controller.ts +++ b/server/src/controllers/games.controller.ts @@ -5,7 +5,7 @@ import { nanoid } from "nanoid"; export const getActivePublicGames = async (req: Request, res: Response) => { try { - res.status(200).json(activeGames.filter((g) => !g.unlisted)); + res.status(200).json(activeGames.filter((g) => !g.unlisted && !g.winner)); } catch (err: unknown) { console.log(err); res.status(500).end();