fix: only exclude languages from course dropdown if its display name doesn't include any parentheses
This commit is contained in:
parent
477b283d78
commit
45744471e0
1 changed files with 4 additions and 1 deletions
|
|
@ -23,7 +23,10 @@ class PLanguageStore {
|
|||
|
||||
List<LanguageModel> get unlocalizedTargetOptions => _langList
|
||||
.where(
|
||||
(element) => element.l2 && element.langCode == element.langCodeShort,
|
||||
(element) =>
|
||||
element.l2 &&
|
||||
(element.langCode == element.langCodeShort ||
|
||||
!element.displayName.contains("(")),
|
||||
)
|
||||
.toList();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue