MoreFollows: count can never be negative, fixes #146
This commit is contained in:
parent
886b241433
commit
74a01a7b3e
|
@ -33,5 +33,5 @@ export const isModerator = account => (
|
|||
export const getFollowDifference = (state, accountId, type) => {
|
||||
const listSize = state.getIn(['user_lists', type, accountId, 'items'], ImmutableList()).size;
|
||||
const counter = state.getIn(['accounts_counters', accountId, `${type}_count`], 0);
|
||||
return counter - listSize;
|
||||
return Math.max(counter - listSize, 0);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue