Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
Fix follow relationships not loading after notifications fetch (masto…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Mar 12, 2018
1 parent 8b14726 commit 4f7f6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/actions/notifications.js
Expand Up @@ -24,7 +24,7 @@ defineMessages({
const fetchRelatedRelationships = (dispatch, notifications) => {
const accountIds = notifications.filter(item => item.type === 'follow').map(item => item.account.id);

if (accountIds > 0) {
if (accountIds.length > 0) {
dispatch(fetchRelationships(accountIds));
}
};
Expand Down

0 comments on commit 4f7f6b3

Please sign in to comment.