From 559b797bcf98677663778155eca9a6fa889d5f5a Mon Sep 17 00:00:00 2001 From: Aaron Haim Date: Wed, 2 Sep 2026 08:43:06 -0400 Subject: [PATCH] fix(app): Update all KCs on first attempt correct --- src/components/problem-layout/Problem.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/problem-layout/Problem.js b/src/components/problem-layout/Problem.js index 246ef27c0a..47a9d34107 100644 --- a/src/components/problem-layout/Problem.js +++ b/src/components/problem-layout/Problem.js @@ -718,6 +718,7 @@ class Problem extends React.Component { kcArray = []; } const _kcArray = cleanArray(kcArray); + let markFirstAttempt = false; for (const kc of _kcArray) { if (!this.bktParams[kc]) { console.debug("invalid KC", kc); @@ -733,10 +734,13 @@ class Problem extends React.Component { continue; } if (this.doMasteryUpdate && (firstAttempts[cardIndex] === undefined || firstAttempts[cardIndex] === false)) { - firstAttempts[cardIndex] = true; + markFirstAttempt = true; update(this.bktParams[kc], bktIsCorrect); } } + if (markFirstAttempt) { + firstAttempts[cardIndex] = true; + } } if (helpPending) {