diff --git a/ui/component/claimPreview/view.jsx b/ui/component/claimPreview/view.jsx index a59a86c4e..e0c70b81e 100644 --- a/ui/component/claimPreview/view.jsx +++ b/ui/component/claimPreview/view.jsx @@ -90,6 +90,7 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => { const abandoned = !isResolvingUri && !claim; const showPublishLink = abandoned && placeholder === 'publish'; const hideActions = type === 'small' || type === 'tooltip'; + const canonicalUrl = claim && claim.canonical_url; let isValid = false; if (uri) { @@ -239,9 +240,11 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => { {/* @if TARGET='app' */} -
- -
+ {claim && ( +
+ +
+ )} {/* @endif */}