diff --git a/app/soapbox/selectors/index.ts b/app/soapbox/selectors/index.ts index 2a026afe15..84165fc98b 100644 --- a/app/soapbox/selectors/index.ts +++ b/app/soapbox/selectors/index.ts @@ -59,7 +59,7 @@ const findAccountsByUsername = (state: RootState, username: string) => { const accounts = state.accounts; return accounts.filter(account => { - return username.toLowerCase() === account.acct.toLowerCase(); + return username.toLowerCase() === account?.acct.toLowerCase(); }); };