make sure auto subscribe works with empty value in config

This commit is contained in:
Sean Yesmunt 2020-08-26 17:00:10 -04:00
parent 8af8a97344
commit a386b4dc7e

View file

@ -25,12 +25,14 @@ function UserChannelFollowIntro(props: Props) {
// subscribe to lbry // subscribe to lbry
useEffect(() => { useEffect(() => {
if (channelsToSubscribe && channelsToSubscribe.length) {
channelsToSubscribe.forEach(c => channelsToSubscribe.forEach(c =>
channelSubscribe({ channelSubscribe({
channelName: parseURI(c).claimName, channelName: parseURI(c).claimName,
uri: c, uri: c,
}) })
); );
}
}, []); }, []);
return ( return (