Merge pull request #4652 from pangeachat/4644-if-some-activity-modules-have-error-all-valid-modules-are-shown-as-unlocked
fix: if some topic activity translations have errors, only show the f…
This commit is contained in:
commit
477b283d78
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