fixes #3306 by not showing the edit screen on a channel that is not yours

This commit is contained in:
Dalton 2020-01-09 22:52:53 -06:00 committed by Sean Yesmunt
parent 4698ee760a
commit afda19ccd8

View file

@ -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} />