diff --git a/lib/pangea/analytics_misc/construct_list_model.dart b/lib/pangea/analytics_misc/construct_list_model.dart index 5d33e1c6f..7e4e63ed8 100644 --- a/lib/pangea/analytics_misc/construct_list_model.dart +++ b/lib/pangea/analytics_misc/construct_list_model.dart @@ -217,10 +217,9 @@ class ConstructListModel { }) { final constructs = constructList(type: type); final List unlocked = []; - final constructsList = []; - // type == ConstructTypeEnum.vocab ? _vocabLemmasList : _grammarLemmasList; + final constructsSet = constructList(type: type).map((e) => e.lemma).toSet(); - for (final lemma in constructsList) { + for (final lemma in constructsSet) { final matches = constructs.where((m) => m.lemma == lemma); final totalPoints = matches.fold( 0,