From 2103a3dc9e11e9b144073e0d25f7b34352046645 Mon Sep 17 00:00:00 2001 From: miko Date: Mon, 11 Dec 2023 12:04:21 +0200 Subject: [PATCH] Don't show "Edit" on pending reposts. --- ui/component/claimMenuList/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/claimMenuList/index.js b/ui/component/claimMenuList/index.js index 7623fc3c23..020ef7ba36 100644 --- a/ui/component/claimMenuList/index.js +++ b/ui/component/claimMenuList/index.js @@ -42,7 +42,7 @@ const select = (state, props) => { const { uri } = props; const claim = selectClaimForUri(state, uri, false); const collectionId = props.collectionId; - const repostedClaim = claim && claim.reposted_claim; + const repostedClaim = claim?.reposted_claim || claim?.value?.claim_hash; const contentClaim = repostedClaim || claim; const contentSigningChannel = contentClaim && contentClaim.signing_channel; const contentPermanentUri = contentClaim && contentClaim.permanent_url;