diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index 96bf87ec..e249cd44 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -15,8 +15,8 @@ import { isHomeAboutView, isHomeView, isInboxView, - isPendingView, - isPostView, + isPendingPostView, + isPostPageView, isProfileView, isProfileCommentsView, isProfileDownvotedView, @@ -62,11 +62,11 @@ const CommentsButton = () => { const { t } = useTranslation(); const params = useParams(); const location = useLocation(); - const isInPostView = isPostView(location.pathname, params); + const isInPostPageView = isPostPageView(location.pathname, params); const isInHomeAboutView = isHomeAboutView(location.pathname); return ( -
- {isInPostView && link ? ( +
+ {isInPostPageView && link ? ( {postTitle ?? '-'} @@ -219,7 +219,7 @@ const Post = ({ index, post = {} }: PostProps) => { )}
- {!isInPostView && (!(commentMediaInfo?.type === 'webpage') || (commentMediaInfo?.type === 'webpage' && content?.trim().length > 0)) && ( + {!isInPostPageView && (!(commentMediaInfo?.type === 'webpage') || (commentMediaInfo?.type === 'webpage' && content?.trim().length > 0)) && (