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(() => {
channelsToSubscribe.forEach(c => if (channelsToSubscribe && channelsToSubscribe.length) {
channelSubscribe({ channelsToSubscribe.forEach(c =>
channelName: parseURI(c).claimName, channelSubscribe({
uri: c, channelName: parseURI(c).claimName,
}) uri: c,
); })
);
}
}, []); }, []);
return ( return (