diff --git a/src/states/app.ts b/src/states/app.ts index e062494865..9f44fbffca 100644 --- a/src/states/app.ts +++ b/src/states/app.ts @@ -460,32 +460,6 @@ export const JWLangState = selector({ key: 'JWLang', get: ({ get }) => { const appLang = get(appLangState); - const settings = get(settingsState); - const sources = get(sourcesState); - - const userRole = settings.user_settings.cong_role; - - const isAdmin = userRole.some( - (role) => - role === 'admin' || role === 'coordinator' || role === 'secretary' - ); - - const isMidweekEditor = isAdmin || userRole.includes('midweek_schedule'); - const isWeekendEditor = isAdmin || userRole.includes('weekend_schedule'); - const isMeetingEditor = isMidweekEditor || isWeekendEditor; - - if (!isMeetingEditor) { - const source = sources.at(0); - - if (source) { - const keys = Object.keys(source.midweek_meeting.weekly_bible_reading); - return keys.at(0); - } - - if (!source) { - return 'E'; - } - } const currentLang = LANGUAGE_LIST.find((lang) => lang.locale === appLang);