Skip to content

Commit

Permalink
raise information shows incorrect "old" middle cells (#993)
Browse files Browse the repository at this point in the history
Fixes #914
  • Loading branch information
zkrising committed Feb 6, 2024
1 parent 868ccb6 commit d175583
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/components/sessions/SessionRaiseBreakdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,11 @@ function BreakdownChartContents({
scoreData: newScoreData,
}) as ScoreDocument;

// We don't actually know what the user's previous score was, we can only walk
// back the raise information we have. As such, we don't keep track of
// judgements, and must nix them here.
mockScore.scoreData.judgements = {};

preScoreCell = <ScoreCoreCells short chart={chart} game={game} score={mockScore} />;
}

Expand Down

0 comments on commit d175583

Please sign in to comment.