From dbfac54af972f60f7dc43b8d9018c12241c129b2 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:32:24 +0100 Subject: [PATCH] Feature/refactor community language method (#4071) * Refactoring --- .../user-account-settings/user-account-settings.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/app/components/user-account-settings/user-account-settings.component.ts b/apps/client/src/app/components/user-account-settings/user-account-settings.component.ts index 442be2fb4..d92f1b63e 100644 --- a/apps/client/src/app/components/user-account-settings/user-account-settings.component.ts +++ b/apps/client/src/app/components/user-account-settings/user-account-settings.component.ts @@ -117,7 +117,7 @@ export class UserAccountSettingsComponent implements OnDestroy, OnInit { } public isCommunityLanguage() { - return !(this.language === 'de' || this.language === 'en'); + return !['de', 'en'].includes(this.language); } public onChangeUserSetting(aKey: string, aValue: string) {