Skip to content

Commit 85b8783

Browse files
fix: update to new puzzle count
1 parent d4fffc1 commit 85b8783

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/profile/profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const getPlayerStats = async () => {
3030

3131
trainRating: data.puzzles_elo as number,
3232
trainCorrect: data.puzzles_correct as number,
33-
trainGames: Math.max(0, (data.puzzles_played as number) - 1),
33+
trainGames: data.puzzles_played as number,
3434
trainMax: data.puzzles_elo_max as number,
3535
trainMin: data.puzzles_elo_min as number,
3636
trainHours: data.puzzle_game_time as number,

src/pages/train.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import { GameControllerContext } from 'src/contexts/GameControllerContext/GameCo
4545
const statsLoader = async () => {
4646
const stats = await getTrainingPlayerStats()
4747
return {
48-
gamesPlayed: Math.max(0, stats.totalPuzzles - 1),
48+
gamesPlayed: Math.max(0, stats.totalPuzzles),
4949
gamesWon: stats.puzzlesSolved,
5050
rating: stats.rating,
5151
}

0 commit comments

Comments
 (0)