From 3f162eb285539b81b6b9681a6c214d260e3ebd5c Mon Sep 17 00:00:00 2001 From: Franco Montenegro Date: Tue, 10 Aug 2021 23:35:25 -0300 Subject: [PATCH] Do not count auto follow channels for UserChannelFollowIntro. --- ui/component/userChannelFollowIntro/view.jsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ui/component/userChannelFollowIntro/view.jsx b/ui/component/userChannelFollowIntro/view.jsx index b558b0a7c..88723f3a1 100644 --- a/ui/component/userChannelFollowIntro/view.jsx +++ b/ui/component/userChannelFollowIntro/view.jsx @@ -28,6 +28,9 @@ function UserChannelFollowIntro(props: Props) { channelIds = PRIMARY_CONTENT.channelIds; } const followingCount = (subscribedChannels && subscribedChannels.length) || 0; + const followingCountIgnoringAutoFollows = (subscribedChannels || []).filter( + (channel) => !channelsToSubscribe.includes(channel.uri) + ).length; // subscribe to lbry useEffect(() => { @@ -74,9 +77,13 @@ function UserChannelFollowIntro(props: Props) {