fix: if some topic activity translations have errors, only show the first successful one as unlocked
This commit is contained in:
parent
e2a3974354
commit
07d9e92cc6
1 changed files with 1 additions and 3 deletions
|
|
@ -95,9 +95,7 @@ mixin ActivitySummariesProvider<T extends StatefulWidget> on State<T> {
|
|||
final topicId = course.topicIds[i];
|
||||
final topic = course.loadedTopics[topicId];
|
||||
if (topic == null) continue;
|
||||
if (!topic.activityListComplete) {
|
||||
return null;
|
||||
}
|
||||
if (!topic.activityListComplete) continue;
|
||||
|
||||
if (!_hasCompletedTopic(userID, topic) && topic.activityIds.isNotEmpty) {
|
||||
return topicId;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue