From eddbe5fa3f6312848e9b715d727864b13a61ca8f Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Tue, 20 Jan 2026 15:09:37 +0100 Subject: [PATCH] Refine vocabulary selection logic in VocabLessonView to prevent duplicates - Updated the condition for adding vocabulary options to ensure that normalized vocabulary entries are checked against the exclusion set, preventing duplicates and enhancing the learning experience. --- frontend/src/views/social/VocabLessonView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/social/VocabLessonView.vue b/frontend/src/views/social/VocabLessonView.vue index c53cb50..b0c681a 100644 --- a/frontend/src/views/social/VocabLessonView.vue +++ b/frontend/src/views/social/VocabLessonView.vue @@ -1070,7 +1070,7 @@ export default { let index = 0; while (options.size < 4 && index < genericOptions.length) { const option = genericOptions[index]; - if (!excludeSet.has(option)) { + if (!normalizedExcludeSet.has(this.normalizeVocab(option)) && !options.has(option)) { options.add(option); } index++;