Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/problem-layout/Problem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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) {
Expand Down