From a386b4dc7e5dbc5407d8f8186f5f47417d9facbe Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 26 Aug 2020 17:00:10 -0400 Subject: [PATCH] make sure auto subscribe works with empty value in config --- ui/component/userChannelFollowIntro/view.jsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ui/component/userChannelFollowIntro/view.jsx b/ui/component/userChannelFollowIntro/view.jsx index 671ff41bc..69f0ad458 100644 --- a/ui/component/userChannelFollowIntro/view.jsx +++ b/ui/component/userChannelFollowIntro/view.jsx @@ -25,12 +25,14 @@ function UserChannelFollowIntro(props: Props) { // subscribe to lbry useEffect(() => { - channelsToSubscribe.forEach(c => - channelSubscribe({ - channelName: parseURI(c).claimName, - uri: c, - }) - ); + if (channelsToSubscribe && channelsToSubscribe.length) { + channelsToSubscribe.forEach(c => + channelSubscribe({ + channelName: parseURI(c).claimName, + uri: c, + }) + ); + } }, []); return (