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);
|
||||
}, [uri, fetchSubCount, claimId]);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!channelIsMine && editing) {
|
||||
setEditing(false);
|
||||
}
|
||||
}, [channelIsMine, editing]);
|
||||
|
||||
return (
|
||||
<Page>
|
||||
<ClaimUri uri={uri} />
|
||||
|
|
Loading…
Reference in a new issue