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:
ggurdin 2025-11-13 14:37:30 -05:00 committed by GitHub
commit 477b283d78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;