Skip to content

Commit

Permalink
fix: the dashboard blitz object initialized from blitz, not rapid
Browse files Browse the repository at this point in the history
This should fix #130, although I could not test because the draw
button is now disabled. Anyway simple and logic enough.
  • Loading branch information
mvertes committed Sep 25, 2023
1 parent 26a3581 commit 45e9f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/assets/js/components/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Dashboard = class extends Component {

private _feedUserRating(player: Player) {
const playerRapidRating: PlayerRating = player.rapid;
const playerBlitzRating: PlayerRating = player.rapid;
const playerBlitzRating: PlayerRating = player.blitz;

const rapidRating = {
wins: playerRapidRating.wins,
Expand Down

0 comments on commit 45e9f4b

Please sign in to comment.