fix : filter out games without pgn

This commit is contained in:
GuillaumeSD
2025-06-20 23:22:06 +02:00
parent 021d36adb1
commit da30ba1fc6

View File

@@ -42,6 +42,7 @@ export const getChessComUserRecentGames = async (
}
const gamesToReturn = games
.filter((game) => game.pgn && game.end_time)
.sort((a, b) => b.end_time - a.end_time)
.slice(0, 50)
.map(formatChessComGame);