Skip to content

Commit

Permalink
fix: update to new puzzle count
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjosethomas committed Oct 30, 2024
1 parent d4fffc1 commit 85b8783
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/profile/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const getPlayerStats = async () => {

trainRating: data.puzzles_elo as number,
trainCorrect: data.puzzles_correct as number,
trainGames: Math.max(0, (data.puzzles_played as number) - 1),
trainGames: data.puzzles_played as number,
trainMax: data.puzzles_elo_max as number,
trainMin: data.puzzles_elo_min as number,
trainHours: data.puzzle_game_time as number,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/train.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import { GameControllerContext } from 'src/contexts/GameControllerContext/GameCo
const statsLoader = async () => {
const stats = await getTrainingPlayerStats()
return {
gamesPlayed: Math.max(0, stats.totalPuzzles - 1),
gamesPlayed: Math.max(0, stats.totalPuzzles),
gamesWon: stats.puzzlesSolved,
rating: stats.rating,
}
Expand Down

0 comments on commit 85b8783

Please sign in to comment.