make sure auto subscribe works with empty value in config
This commit is contained in:
parent
8af8a97344
commit
a386b4dc7e
1 changed files with 8 additions and 6 deletions
|
@ -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 (
|
||||||
|
|
Loading…
Reference in a new issue