Skip to content

Commit 33f5a6c

Browse files
committed
Account for Completed status
1 parent 50912f4 commit 33f5a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function Dashboard() {
3535
for (const up of userProgress) {
3636
if (!progress.has(up.exercise_name)) {
3737
progress.set(up.exercise_name, up.status)
38-
} else if (progress.get(up.exercise_name) !== "SUCCESSFUL" && up.status === "SUCCESSFUL") {
38+
} else if ((progress.get(up.exercise_name) !== "SUCCESSFUL" || progress.get(up.exercise_name) !== "Completed") && (up.status === "SUCCESSFUL" || up.status === "Completed")) {
3939
// Take any success
4040
progress.set(up.exercise_name, up.status)
4141
}

0 commit comments

Comments
 (0)