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
|
||||
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 (
|
||||
|
|
Loading…
Reference in a new issue