diff --git a/ts/components/session/LeftPaneContactSection.tsx b/ts/components/session/LeftPaneContactSection.tsx index 02ab2384f..c78e067e7 100644 --- a/ts/components/session/LeftPaneContactSection.tsx +++ b/ts/components/session/LeftPaneContactSection.tsx @@ -321,9 +321,13 @@ export class LeftPaneContactSection extends React.Component { private renderList() { const { sentFriendsRequest } = this.props; - const visibleFriendRequests = sentFriendsRequest.filter(device => !device.isSecondary); + + const visibleFriendRequests = sentFriendsRequest.filter( + device => !device.isSecondary + ); + const friends = window.getFriendsFromContacts(this.props.friends); - const length = Number(sentFriendsRequest.length) + Number(friends.length); + const length = Number(visibleFriendRequests.length) + Number(friends.length); const combined = [...visibleFriendRequests, ...friends]; const list = (