diff --git a/src/app/components/user-profile/UserRoomProfile.tsx b/src/app/components/user-profile/UserRoomProfile.tsx index 5d0f9e7e..e11deaa8 100644 --- a/src/app/components/user-profile/UserRoomProfile.tsx +++ b/src/app/components/user-profile/UserRoomProfile.tsx @@ -95,7 +95,7 @@ function UserExtendedSection({ const languagesToFilterFor = getSettings().filterPronounsLanguages ?? ['en']; const pronouns = filterPronounsByLanguage( - profile.pronouns!, + profile.pronouns, languageFilterEnabled, languagesToFilterFor ) diff --git a/src/app/utils/pronouns.test.ts b/src/app/utils/pronouns.test.ts index e0471ce6..d31361ba 100644 --- a/src/app/utils/pronouns.test.ts +++ b/src/app/utils/pronouns.test.ts @@ -83,7 +83,6 @@ describe('filterPronounsByLanguage', () => { }); it('returns empty array for non-array input', () => { - // @ts-expect-error — testing runtime safety expect(filterPronounsByLanguage(null, true, ['en'])).toEqual([]); }); });