fix: removing classes

pull/3904/head
Arik Chakma 2 years ago
parent 1cea9d0e13
commit 48239772f6
  1. 2
      src/lib/resource-progress.ts

@ -187,8 +187,10 @@ export function renderTopicProgress(
matchingElements.forEach((element) => { matchingElements.forEach((element) => {
if (isDone) { if (isDone) {
element.classList.add('done'); element.classList.add('done');
element.classList.remove('learning');
} else if (isLearning) { } else if (isLearning) {
element.classList.add('learning'); element.classList.add('learning');
element.classList.remove('done');
} else { } else {
element.classList.remove('done'); element.classList.remove('done');
element.classList.remove('learning'); element.classList.remove('learning');

Loading…
Cancel
Save