fix: if some topic activity translations have errors, only show the first successful one as unlocked

This commit is contained in:
ggurdin 2025-11-13 14:36:54 -05:00
parent e2a3974354
commit 07d9e92cc6
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

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;