diff --git a/src/components/post-desktop/post-desktop.tsx b/src/components/post-desktop/post-desktop.tsx index 633b1902..f35f2fe1 100644 --- a/src/components/post-desktop/post-desktop.tsx +++ b/src/components/post-desktop/post-desktop.tsx @@ -153,25 +153,22 @@ const PostInfo = ({ openReplyModal, post, postReplyCount = 0, roles, isHidden }: p/{subplebbitAddress && Plebbit.getShortAddress(subplebbitAddress)}{' '} )} - {!(isDescription || isRules) && ( - - {cid ? ( - <> - !cid && e.preventDefault()}> - c/ - - openReplyModal && openReplyModal(cid, postCid, subplebbitAddress)}> - {shortCid} - - - ) : ( - <> - c/ - {state === 'failed' || stateString === 'Failed' ? 'Failed' : 'Pending'} - - )} - - )} + {!(isDescription || isRules) && + (cid ? ( + + !cid && e.preventDefault()}> + c/ + + openReplyModal && openReplyModal(cid, postCid, subplebbitAddress)}> + {shortCid} + + + ) : ( + <> + c/ + {state === 'failed' || stateString === 'Failed' ? 'Failed' : 'Pending'} + + ))} {pinned && ( diff --git a/src/components/post-mobile/post-mobile.tsx b/src/components/post-mobile/post-mobile.tsx index fa5ff617..3d6bfcf6 100644 --- a/src/components/post-mobile/post-mobile.tsx +++ b/src/components/post-mobile/post-mobile.tsx @@ -141,25 +141,22 @@ const PostInfoAndMedia = ({ openReplyModal, post, postReplyCount = 0, roles }: P )} {getFormattedDate(timestamp)}} content={getFormattedTimeAgo(timestamp)} />{' '} - {!(isDescription || isRules) && ( - - {cid ? ( - <> - !cid && e.preventDefault()}> - c/ - - openReplyModal && openReplyModal(cid, postCid, subplebbitAddress)}> - {shortCid.slice(0, -4)} - - - ) : ( - <> - c/ - {state === 'failed' || stateString === 'Failed' ? 'Failed' : 'Pending'} - - )} - - )} + {!(isDescription || isRules) && + (cid ? ( + + !cid && e.preventDefault()}> + c/ + + openReplyModal && openReplyModal(cid, postCid, subplebbitAddress)}> + {shortCid.slice(0, -4)} + + + ) : ( + <> + c/ + {state === 'failed' || stateString === 'Failed' ? 'Failed' : 'Pending'} + + ))} {(hasThumbnail || link) && !(deleted || removed) && (