Don't allow editing someone else's Channel

This commit is contained in:
saltrafael 2021-06-22 09:03:53 -03:00 committed by Thomas Zarebczan
parent 852819dd00
commit 2bfc5d7669
2 changed files with 2 additions and 2 deletions

View file

@ -164,7 +164,7 @@ const ClaimPreview = forwardRef<any, {}>((props: Props, ref: any) => {
collectionParams.set(COLLECTIONS_CONSTS.COLLECTION_ID, collectionId);
navigateUrl = navigateUrl + `?` + collectionParams.toString();
}
const channelUri = claim && (signingChannel ? signingChannel.permanent_url : claim.permanent_url);
const channelUri = !isChannelUri ? signingChannel && signingChannel.permanent_url : claim && claim.permanent_url;
const navLinkProps = {
to: navigateUrl,
onClick: (e) => e.stopPropagation(),

View file

@ -99,7 +99,7 @@ function ClaimPreviewTile(props: Props) {
}
const signingChannel = claim && claim.signing_channel;
const channelUri = signingChannel && signingChannel.permanent_url;
const channelUri = !isChannel ? signingChannel && signingChannel.permanent_url : claim && claim.permanent_url;
function handleClick(e) {
if (navigateUrl) {