From d17558317e818f76f7da09b0252772e3442556ad Mon Sep 17 00:00:00 2001 From: zkldi Date: Tue, 6 Feb 2024 22:11:52 +0000 Subject: [PATCH] raise information shows incorrect "old" middle cells (#993) Fixes #914 --- client/src/components/sessions/SessionRaiseBreakdown.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/components/sessions/SessionRaiseBreakdown.tsx b/client/src/components/sessions/SessionRaiseBreakdown.tsx index 29e83b711..3981dd410 100644 --- a/client/src/components/sessions/SessionRaiseBreakdown.tsx +++ b/client/src/components/sessions/SessionRaiseBreakdown.tsx @@ -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 = ; }