fixes #3306 by not showing the edit screen on a channel that is not yours
This commit is contained in:
parent
4698ee760a
commit
afda19ccd8
1 changed files with 6 additions and 0 deletions
|
@ -161,6 +161,12 @@ function ChannelPage(props: Props) {
|
||||||
fetchSubCount(claimId);
|
fetchSubCount(claimId);
|
||||||
}, [uri, fetchSubCount, claimId]);
|
}, [uri, fetchSubCount, claimId]);
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (!channelIsMine && editing) {
|
||||||
|
setEditing(false);
|
||||||
|
}
|
||||||
|
}, [channelIsMine, editing]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<ClaimUri uri={uri} />
|
<ClaimUri uri={uri} />
|
||||||
|
|
Loading…
Add table
Reference in a new issue